]> git.baikalelectronics.ru Git - kernel.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>
Sun, 4 Nov 2012 19:43:38 +0000 (14:43 -0500)
commite9f94fa8eb42b0590178279ca3cd0f4e788c00aa
treef5b591952b85baf4ec3a9c7c7e29d0667724eda4
parentec8d49f576f190f960de5ad59d06d25833eb6497
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