Skip to content

Commit b8bea9f

Browse files
jtlaytonchucklever
authored andcommitted
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>
1 parent 9b78d91 commit b8bea9f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/nfsd/filecache.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,7 @@ nfsd_file_do_acquire(struct svc_rqst *rqstp, struct svc_fh *fhp,
11741174
status = nfserr_jukebox;
11751175
if (status != nfs_ok)
11761176
nfsd_file_unhash(nf);
1177-
clear_bit_unlock(NFSD_FILE_PENDING, &nf->nf_flags);
1178-
smp_mb__after_atomic();
1179-
wake_up_bit(&nf->nf_flags, NFSD_FILE_PENDING);
1177+
clear_and_wake_up_bit(NFSD_FILE_PENDING, &nf->nf_flags);
11801178
goto out;
11811179
}
11821180

0 commit comments

Comments
 (0)