提交 4a269efb 编写于 作者: J J. Bruce Fields

nfsd: update obselete comment referencing the BKL

It's inode->i_lock that's now taken in setlease and break_lease, instead
of the big kernel lock.
Reviewed-by: NJeff Layton <jlayton@kernel.org>
Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 ca0552f4
...@@ -3945,9 +3945,9 @@ static void nfsd_break_one_deleg(struct nfs4_delegation *dp) ...@@ -3945,9 +3945,9 @@ static void nfsd_break_one_deleg(struct nfs4_delegation *dp)
/* /*
* We're assuming the state code never drops its reference * We're assuming the state code never drops its reference
* without first removing the lease. Since we're in this lease * without first removing the lease. Since we're in this lease
* callback (and since the lease code is serialized by the kernel * callback (and since the lease code is serialized by the
* lock) we know the server hasn't removed the lease yet, we know * i_lock) we know the server hasn't removed the lease yet, and
* it's safe to take a reference. * we know it's safe to take a reference.
*/ */
refcount_inc(&dp->dl_stid.sc_count); refcount_inc(&dp->dl_stid.sc_count);
nfsd4_run_cb(&dp->dl_recall); nfsd4_run_cb(&dp->dl_recall);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册