mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
nfsd: fix comments about spinlock handling with delegations
[ Upstream commit 25fbe1fca1
]
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
ecb0eb07ee
commit
f6279fa0dc
1 changed files with 2 additions and 2 deletions
|
@ -4870,14 +4870,14 @@ 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
|
* 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.
|
* 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Called from break_lease() with i_lock held. */
|
/* Called from break_lease() with flc_lock held. */
|
||||||
static bool
|
static bool
|
||||||
nfsd_break_deleg_cb(struct file_lock *fl)
|
nfsd_break_deleg_cb(struct file_lock *fl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue