SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding
authorTrond Myklebust <trondmy@gmail.com>
Thu, 17 Oct 2019 13:02:20 +0000 (09:02 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 30 Oct 2019 16:04:35 +0000 (12:04 -0400)
commit9edb455e6797bb50aa38ef71e62668966065ede8
tree278d71e0f610dc1b3ec50d6da243dd3536934195
parent875f0706accd6501c3209bb99df8573171fb5d75
SUNRPC: The RDMA back channel mustn't disappear while requests are outstanding

If there are RDMA back channel requests being processed by the
server threads, then we should hold a reference to the transport
to ensure it doesn't get freed from underneath us.

Reported-by: Neil Brown <neilb@suse.de>
Fixes: 63cae47005af ("xprtrdma: Handle incoming backward direction RPC calls")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c