IB/iser: Don't bound release_work completions timeouts
authorSagi Grimberg <sagig@mellanox.com>
Wed, 1 Oct 2014 11:02:02 +0000 (14:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 9 Oct 2014 07:06:06 +0000 (00:06 -0700)
commitc107a6c0cf1ab883ea87ca50136f4fc5204a4b82
treef86ffda64d488b89aa89b5423d45923aded137b8
parentc47a3c9ed5be167f49a6fd3f696dac03536282eb
IB/iser: Don't bound release_work completions timeouts

We no longer rely on iscsi connection teardown sequence, so no need to
give a grace period and continue cleanup if it expired. Have
iser_conn_release wait for full completion before freeing iser_conn.

ib_completion:
Guaranteed to come when:
    - Got DISCONNECTED/ADDR_CHANGE event or
    - iSCSI called ep_disconnect/conn_stop
Guaranteed to finish when:
    - Got TIMEWAIT_EXIT/DEVICE_REMOVAL event
    - All Flush errors are consumed
    - IB related resources are destroyed

stop_completion:
Guaranteed to come when:
    - iSCSI calls conn_stop
Guaranteed to finish when:
    - All inflight tasks were cleaned up

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/iser_verbs.c