Revert "SUNRPC: Use RMW bitops in single-threaded hot paths"
authorChuck Lever <chuck.lever@oracle.com>
Fri, 6 Jan 2023 17:43:37 +0000 (12:43 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 6 Jan 2023 18:17:12 +0000 (13:17 -0500)
commit7827c81f0248e3c2f40d438b020f3d222f002171
treec95f090bfc8ee313f613aadd2c7c337cd002e979
parent0b3a551fa58b4da941efeb209b3770868e2eddd7
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>
fs/nfsd/nfs4proc.c
fs/nfsd/nfs4xdr.c
net/sunrpc/auth_gss/svcauth_gss.c
net/sunrpc/svc.c
net/sunrpc/svc_xprt.c
net/sunrpc/svcsock.c
net/sunrpc/xprtrdma/svc_rdma_transport.c