mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
nfsd: don't open-code clear_and_wake_up_bit
Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
9b78d91963
commit
b8bea9f6cd
1 changed files with 1 additions and 3 deletions
|
@ -1174,9 +1174,7 @@ nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
|
||||||
status = nfserr_jukebox;
|
status = nfserr_jukebox;
|
||||||
if (status != nfs_ok)
|
if (status != nfs_ok)
|
||||||
nfsd_file_unhash(nf);
|
nfsd_file_unhash(nf);
|
||||||
clear_bit_unlock(NFSD_FILE_PENDING, &nf->nf_flags);
|
clear_and_wake_up_bit(NFSD_FILE_PENDING, &nf->nf_flags);
|
||||||
smp_mb__after_atomic();
|
|
||||||
wake_up_bit(&nf->nf_flags, NFSD_FILE_PENDING);
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue