OSDN Git Service

IB/iser: Terminate connection before cleaning inflight tasks
authorSagi Grimberg <sagig@mellanox.com>
Sun, 7 Dec 2014 14:10:00 +0000 (16:10 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 16 Dec 2014 02:11:44 +0000 (18:11 -0800)
commitf0caef6d407bf0fc8dfba5cddf7318170187f194
treed034482f20fc277ffb5df5174a59e3d96313a3f4
parent7414dde0a6c3a958e26141991bf5c75dc58d28b2
IB/iser: Terminate connection before cleaning inflight tasks

When closing the connection, we should first terminate the connection
(in case it was not previously terminated) to guarantee the QP is in
error state and we are done with servicing IO. Only then go ahead with
tasks cleanup via iscsi_conn_stop.

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