]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SUNRPC: add WARN_ON_ONCE for potential deadlock
authorWeston Andros Adamson <dros@netapp.com>
Tue, 30 Oct 2012 21:01:40 +0000 (17:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 31 Oct 2012 20:27:23 +0000 (16:27 -0400)
commit1b58f88c3f137875bff2ed382194ea56bda5fc9a
tree3e3c1991db2336575702e3ca232da2672e940c24
parent324d003b0cd82151adbaecefef57b73f7959a469
SUNRPC: add WARN_ON_ONCE for potential deadlock

rpc_shutdown_client should never be called from a workqueue context.
If it is, it could deadlock looping forever trying to kill tasks that are
assigned to the same kworker thread (and will never run rpc_exit_task).

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c