IB/iser: Protect tasks cleanup in case IB device was already released
authorSagi Grimberg <sagig@mellanox.com>
Wed, 1 Oct 2014 11:02:04 +0000 (14:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 9 Oct 2014 07:06:06 +0000 (00:06 -0700)
commit3a940daf6fa105d28b69cf3b7a3739a3777f4185
treeb83d909745453657054b31cb0924fc60b2f6a727
parentec370e2b63526931a65f4668626dbb43896788c6
IB/iser: Protect tasks cleanup in case IB device was already released

Bailout in case a task cleanup (iscsi_iser_cleanup_task) is called
after the IB device was removed (DEVICE_REMOVAL CM event).  We also
call iscsi_conn_stop with a lock taken to prevent DEVICE_REMOVAL and
tasks cleanup from racing.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
This page took 0.025283 seconds and 5 git commands to generate.