summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-04-11 19:22:29 +0200
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-04-25 22:12:14 +0200
commit9378b274e1eb6925db315e345f48850d2d5d9789 (patch)
tree2a3b4ada447a8504e7c3b7591f62fbefc0f75324 /net
parentLinux 4.11-rc6 (diff)
downloadlinux-9378b274e1eb6925db315e345f48850d2d5d9789.tar.xz
linux-9378b274e1eb6925db315e345f48850d2d5d9789.zip
xprtrdma: Cancel refresh worker during buffer shutdown
Trying to create MRs while the transport is being torn down can cause a crash. Fixes: e2ac236c0b65 ("xprtrdma: Allocate MRs on demand") Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/xprtrdma/verbs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c
index 3b332b395045..2e4fc1e46947 100644
--- a/net/sunrpc/xprtrdma/verbs.c
+++ b/net/sunrpc/xprtrdma/verbs.c
@@ -1037,6 +1037,7 @@ void
rpcrdma_buffer_destroy(struct rpcrdma_buffer *buf)
{
cancel_delayed_work_sync(&buf->rb_recovery_worker);
+ cancel_delayed_work_sync(&buf->rb_refresh_worker);
while (!list_empty(&buf->rb_recv_bufs)) {
struct rpcrdma_rep *rep;