]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix races with rpc_killall_tasks()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 5 Oct 2022 19:57:35 +0000 (15:57 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Thu, 6 Oct 2022 13:52:09 +0000 (09:52 -0400)
commit9403a1793349aefb996fd78e45bdb6d06405c199
tree8ec7c409191f59a7a640cf83875ead610d6c7e76
parent9a6d63ebc49787c3748fe10c64b9ad8072d49b48
SUNRPC: Fix races with rpc_killall_tasks()

Ensure that we immediately call rpc_exit_task() after waking up, and
that the tk_rpc_status cannot get clobbered by some other function.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/clnt.c
net/sunrpc/sched.c
net/sunrpc/xprtsock.c