diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-03-19 19:23:16 +0100 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 22:07:10 +0200 |
commit | 25524288631fc5b7d33259fca1e0dc38146be5d6 (patch) | |
tree | 2b148001eb639023f8c308937c841c94522f6480 /fs/bad_inode.c | |
parent | nfs4: wake any lock waiters on successful RECLAIM_COMPLETE (diff) | |
download | linux-25524288631fc5b7d33259fca1e0dc38146be5d6.tar.xz linux-25524288631fc5b7d33259fca1e0dc38146be5d6.zip |
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/bad_inode.c')
0 files changed, 0 insertions, 0 deletions