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)
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