Skip to content

Commit a017ad1

Browse files
Trond Myklebustamschuma-ntap
authored andcommitted
NFSv4: Add missing rescheduling points in nfs_client_return_marked_delegations
We're seeing reports of soft lockups when iterating through the loops, so let's add rescheduling points. Signed-off-by: Trond Myklebust <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 9583299 commit a017ad1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/super.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include <linux/vfs.h>
4848
#include <linux/inet.h>
4949
#include <linux/in6.h>
50+
#include <linux/sched.h>
5051
#include <linux/slab.h>
5152
#include <net/ipv6.h>
5253
#include <linux/netdevice.h>
@@ -228,6 +229,7 @@ static int __nfs_list_for_each_server(struct list_head *head,
228229
ret = fn(server, data);
229230
if (ret)
230231
goto out;
232+
cond_resched();
231233
rcu_read_lock();
232234
}
233235
rcu_read_unlock();

0 commit comments

Comments
 (0)