]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Fix completion wait during device removal
authorChuck Lever <chuck.lever@oracle.com>
Fri, 3 Jan 2020 16:52:17 +0000 (11:52 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 14 Jan 2020 18:30:24 +0000 (13:30 -0500)
commit4f5c9566c5cce199bdde43c02524b0fe037fe0cf
treec41b5e4634d278a0543c73de76fbbb5c45537cdc
parentff8516c4c10efc3baa4d839a73a1b2068040fb7e
xprtrdma: Fix completion wait during device removal

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: 0100d513d43b ("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>
net/sunrpc/xprtrdma/verbs.c