]> 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>
Thu, 1 Nov 2012 16:02:03 +0000 (12:02 -0400)
commit5ca0c0ed6082af0a9089403991d420bae58a555d
tree93b624f260580a14404b4d938a457f5e1fa1c10e
parentf9b1ef5f06d65a01952169b67d474f7f0dcb0206
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