From: Trond Myklebust Date: Wed, 21 Aug 2024 18:05:00 +0000 (-0400) Subject: NFSv4: Add missing rescheduling points in nfs_client_return_marked_delegations X-Git-Tag: v6.12~625^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a017ad1313fc91bdf235097fd0a02f673fc7bb11;p=platform%2Fkernel%2Flinux-amlogic.git 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 Reviewed-by: Jeff Layton Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/super.c b/fs/nfs/super.c index cbbd4866b0b7..97b386032b71 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -47,6 +47,7 @@ #include #include #include +#include #include #include #include @@ -228,6 +229,7 @@ static int __nfs_list_for_each_server(struct list_head *head, ret = fn(server, data); if (ret) goto out; + cond_resched(); rcu_read_lock(); } rcu_read_unlock();