diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-11-26 21:55:30 +0100 |
---|---|---|
committer | Chuck Lever <cel@kernel.org> | 2022-12-10 17:01:13 +0100 |
commit | 9315564747cb6a570e99196b3a4880fb817635fd (patch) | |
tree | 794ef1e08d227f4ab2e86bdd48372a7aab861cb5 /fs/nfsd/nfsproc.c | |
parent | SUNRPC: Clean up xdr_write_pages() (diff) | |
download | linux-9315564747cb6a570e99196b3a4880fb817635fd.tar.xz linux-9315564747cb6a570e99196b3a4880fb817635fd.zip |
NFSD: Use only RQ_DROPME to signal the need to drop a reply
Clean up: NFSv2 has the only two usages of rpc_drop_reply in the
NFSD code base. Since NFSv2 is going away at some point, replace
these in order to simplify the "drop this reply?" check in
nfsd_dispatch().
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Diffstat (limited to 'fs/nfsd/nfsproc.c')
-rw-r--r-- | fs/nfsd/nfsproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfsproc.c b/fs/nfsd/nfsproc.c index 52fc222c34f2..a5570cf75f3f 100644 --- a/fs/nfsd/nfsproc.c +++ b/fs/nfsd/nfsproc.c @@ -211,7 +211,7 @@ nfsd_proc_read(struct svc_rqst *rqstp) if (resp->status == nfs_ok) resp->status = fh_getattr(&resp->fh, &resp->stat); else if (resp->status == nfserr_jukebox) - return rpc_drop_reply; + __set_bit(RQ_DROPME, &rqstp->rq_flags); return rpc_success; } @@ -246,7 +246,7 @@ nfsd_proc_write(struct svc_rqst *rqstp) if (resp->status == nfs_ok) resp->status = fh_getattr(&resp->fh, &resp->stat); else if (resp->status == nfserr_jukebox) - return rpc_drop_reply; + __set_bit(RQ_DROPME, &rqstp->rq_flags); return rpc_success; } |