Skip to content

Commit 25fbe1f

Browse files
jtlaytonchucklever
authored andcommitted
nfsd: fix comments about spinlock handling with delegations
Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent 4d01416 commit 25fbe1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/nfsd/nfs4state.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4855,14 +4855,14 @@ static void nfsd_break_one_deleg(struct nfs4_delegation *dp)
48554855
* We're assuming the state code never drops its reference
48564856
* without first removing the lease. Since we're in this lease
48574857
* callback (and since the lease code is serialized by the
4858-
* i_lock) we know the server hasn't removed the lease yet, and
4858+
* flc_lock) we know the server hasn't removed the lease yet, and
48594859
* we know it's safe to take a reference.
48604860
*/
48614861
refcount_inc(&dp->dl_stid.sc_count);
48624862
nfsd4_run_cb(&dp->dl_recall);
48634863
}
48644864

4865-
/* Called from break_lease() with i_lock held. */
4865+
/* Called from break_lease() with flc_lock held. */
48664866
static bool
48674867
nfsd_break_deleg_cb(struct file_lock *fl)
48684868
{

0 commit comments

Comments
 (0)