diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-01-06 20:43:37 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-01-06 21:17:12 +0300 |
commit | 7827c81f0248e3c2f40d438b020f3d222f002171 (patch) | |
tree | c95f090bfc8ee313f613aadd2c7c337cd002e979 /net/sunrpc/svc_xprt.c | |
parent | 0b3a551fa58b4da941efeb209b3770868e2eddd7 (diff) | |
download | linux-7827c81f0248e3c2f40d438b020f3d222f002171.tar.xz |
Revert "SUNRPC: Use RMW bitops in single-threaded hot paths"
The premise that "Once an svc thread is scheduled and executing an
RPC, no other processes will touch svc_rqst::rq_flags" is false.
svc_xprt_enqueue() examines the RQ_BUSY flag in scheduled nfsd
threads when determining which thread to wake up next.
Found via KCSAN.
Fixes: 28df0988815f ("SUNRPC: Use RMW bitops in single-threaded hot paths")
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/svc_xprt.c')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 2106003645a7..c2ce12538008 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c @@ -1238,7 +1238,7 @@ static struct cache_deferred_req *svc_defer(struct cache_req *req) trace_svc_defer(rqstp); svc_xprt_get(rqstp->rq_xprt); dr->xprt = rqstp->rq_xprt; - __set_bit(RQ_DROPME, &rqstp->rq_flags); + set_bit(RQ_DROPME, &rqstp->rq_flags); dr->handle.revisit = svc_revisit; return &dr->handle; |