]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Destroy transport from the system workqueue
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 19 Oct 2017 16:13:10 +0000 (12:13 -0400)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 19 Oct 2017 16:17:56 +0000 (12:17 -0400)
commitb8714a2935bc092364469882acac208ca10b1868
treeb3c63debe9be5b6cf44b386066e453b6094d8a8a
parentd7975a96103846015c1306a3b44d8a705899a3fe
SUNRPC: Destroy transport from the system workqueue

The transport may need to flush transport connect and receive tasks
that are running on rpciod. In order to do so safely, we need to
ensure that the caller of cancel_work_sync() etc is not itself
running on rpciod.
Do so by running the destroy task from the system workqueue.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
net/sunrpc/xprt.c