diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-03-19 21:23:16 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 23:07:10 +0300 |
commit | 25524288631fc5b7d33259fca1e0dc38146be5d6 (patch) | |
tree | 2b148001eb639023f8c308937c841c94522f6480 /fs/libfs.c | |
parent | 571745935b2ec276345faec81af732fb9f51082b (diff) | |
download | linux-25524288631fc5b7d33259fca1e0dc38146be5d6.tar.xz |
xprtrdma: Fix corner cases when handling device removal
Michal Kalderon has found some corner cases around device unload
with active NFS mounts that I didn't have the imagination to test
when xprtrdma device removal was added last year.
- The ULP device removal handler is responsible for deallocating
the PD. That wasn't clear to me initially, and my own testing
suggested it was not necessary, but that is incorrect.
- The transport destruction path can no longer assume that there
is a valid ID.
- When destroying a transport, ensure that ib_free_cq() is not
invoked on a CQ that was already released.
Reported-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Fixes: bebd031866ca ("xprtrdma: Support unplugging an HCA from ...")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/libfs.c')
0 files changed, 0 insertions, 0 deletions