]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitded226cbae4a0aed8480e126202640b88553360f
tree8bd93a692e33073dd40c68cb433f752605a9a794
parent2d2c2af174c89c28f32e7fec85597c872a69b754
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