https://github.com/torvalds/linux
Revision ea174c9573b0e0c8bc1a7a90fe9360ccb7aa9cbb authored by Sagi Grimberg on 27 February 2017, 18:16:33 UTC, committed by Doug Ledford on 25 March 2017, 02:31:19 UTC
When the rdma device is removed, we must cleanup all
the rdma resources within the DEVICE_REMOVAL event
handler to let the device teardown gracefully. When
this happens with live I/O, some memory regions are
occupied. Thus, track them too and dereg all the mr's.

We are safe with mr access by iscsi_iser_cleanup_task.

Reported-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
1 parent b7363e6
History
Tip revision: ea174c9573b0e0c8bc1a7a90fe9360ccb7aa9cbb authored by Sagi Grimberg on 27 February 2017, 18:16:33 UTC
RDMA/iser: Fix possible mr leak on device removal event
Tip revision: ea174c9
File Mode Size
arm
Kconfig -rw-r--r-- 784 bytes
async_pf.c -rw-r--r-- 5.9 KB
async_pf.h -rw-r--r-- 1.1 KB
coalesced_mmio.c -rw-r--r-- 4.1 KB
coalesced_mmio.h -rw-r--r-- 845 bytes
eventfd.c -rw-r--r-- 22.4 KB
irqchip.c -rw-r--r-- 6.0 KB
kvm_main.c -rw-r--r-- 94.2 KB
vfio.c -rw-r--r-- 6.5 KB
vfio.h -rw-r--r-- 250 bytes

back to top