android_kernel_oneplus_msm8998/drivers/infiniband/ulp
Sagi Grimberg 52cd7920b7 RDMA/iser: Fix possible mr leak on device removal event
[ Upstream commit ea174c9573b0e0c8bc1a7a90fe9360ccb7aa9cbb ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-12-25 14:22:12 +01:00
..
ipoib IB/ipoib: Grab rtnl lock on heavy flush when calling ndo_open/stop 2017-12-20 10:05:01 +01:00
iser RDMA/iser: Fix possible mr leak on device removal event 2017-12-25 14:22:12 +01:00
isert iser-target: Avoid isert_conn->cm_id dereference in isert_login_recv_done 2017-08-11 09:08:50 -07:00
srp IB/srp: Avoid that a cable pull can trigger a kernel crash 2017-11-30 08:37:23 +00:00
srpt IB/srpt: Do not accept invalid initiator port names 2017-11-30 08:37:23 +00:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00