android_kernel_xiaomi_sm7250/net/sunrpc/xprtrdma
Chuck Lever f1e47dcc65 xprtrdma: Fix completion wait during device removal
commit 13cb886c591f341a8759f175292ddf978ef903a1 upstream.

I've found that on occasion, "rmmod <dev>" will hang while if an NFS
is under load.

Ensure that ri_remove_done is initialized only just before the
transport is woken up to force a close. This avoids the completion
possibly getting initialized again while the CM event handler is
waiting for a wake-up.

Fixes: bebd031866 ("xprtrdma: Support unplugging an HCA from under an NFS mount")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-17 19:47:04 +01:00
..
backchannel.c
fmr_ops.c
frwr_ops.c
Makefile
module.c
rpc_rdma.c xprtrdma: Prevent leak of rpcrdma_rep objects 2019-12-05 09:20:59 +01:00
svc_rdma_backchannel.c
svc_rdma_recvfrom.c
svc_rdma_rw.c
svc_rdma_sendto.c
svc_rdma_transport.c
svc_rdma.c
transport.c sunrpc: Fix connect metrics 2019-11-24 08:19:49 +01:00
verbs.c xprtrdma: Fix completion wait during device removal 2020-01-17 19:47:04 +01:00
xprt_rdma.h