SUNRPC: Remove unnecessary memory barriers
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 12 Jul 2021 16:24:15 +0000 (12:24 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 4 Oct 2021 00:49:05 +0000 (20:49 -0400)
commitb9f8713f42af11ae6d7f63075334ba5298436be6
tree8bd93a692e33073dd40c68cb433f752605a9a794
parent6dbcbe3f78bec62a4a96ac9cfddaf894a140b821
SUNRPC: Remove unnecessary memory barriers

The only check for RPC_TASK_RUNNING is the one in rpc_make_runnable(),
which happens under the same spin lock held when we call
rpc_clear_running().

Ditto, the last check for RPC_TASK_QUEUED in rpc_execute() is performed
under the same lock as the one held when we call rpc_clear_queued().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
include/linux/sunrpc/sched.h