From: Jeff Layton Date: Mon, 26 Sep 2022 16:38:45 +0000 (-0400) Subject: nfsd: fix comments about spinlock handling with delegations X-Git-Tag: v6.6.17~6123^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25fbe1fca14142beae6c882f7906510363d42bff;p=platform%2Fkernel%2Flinux-rpi.git nfsd: fix comments about spinlock handling with delegations Signed-off-by: Jeff Layton Signed-off-by: Chuck Lever --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 6b9be5a..e116f50 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -4855,14 +4855,14 @@ static void nfsd_break_one_deleg(struct nfs4_delegation *dp) * We're assuming the state code never drops its reference * without first removing the lease. Since we're in this lease * callback (and since the lease code is serialized by the - * i_lock) we know the server hasn't removed the lease yet, and + * flc_lock) we know the server hasn't removed the lease yet, and * we know it's safe to take a reference. */ refcount_inc(&dp->dl_stid.sc_count); nfsd4_run_cb(&dp->dl_recall); } -/* Called from break_lease() with i_lock held. */ +/* Called from break_lease() with flc_lock held. */ static bool nfsd_break_deleg_cb(struct file_lock *fl) {