nfsd: update obselete comment referencing the BKL
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 13 Apr 2018 21:34:35 +0000 (17:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Sun, 17 Jun 2018 14:42:56 +0000 (10:42 -0400)
It's inode->i_lock that's now taken in setlease and break_lease, instead
of the big kernel lock.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 4f13dcb42ab1cbbb0a5016a5fd7f9ab4d9019a2c..19c4d29917ee380af4ac324237fca9732272f26f 100644 (file)
@@ -3945,9 +3945,9 @@ 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 kernel
-        * lock) we know the server hasn't removed the lease yet, we know
-        * it's safe to take a reference.
+        * callback (and since the lease code is serialized by the
+        * i_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);