IB/iser: Allow bind only when connection state is UP
authorSagi Grimberg <sagig@mellanox.com>
Tue, 2 Sep 2014 14:08:42 +0000 (17:08 +0300)
committerRoland Dreier <roland@purestorage.com>
Mon, 22 Sep 2014 16:46:42 +0000 (09:46 -0700)
commit91eb1df39a1fba21bbc28895a84630782cd442ed
tree828ef4791a6afa683db2a76da1ae92e4934c6f8d
parentc33b15f00bbfb9324dc38e5176f576a0f46e0873
IB/iser: Allow bind only when connection state is UP

We need to fail the bind operation if the iser connection state != UP
(started teardown) and this should be done under the state lock.

Signed-off-by: Sagi Grimberg <sagig@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