OSDN Git Service

IB/iser: Extend iser_free_ib_conn_res()
authorSagi Grimberg <sagig@mellanox.com>
Wed, 1 Oct 2014 11:02:00 +0000 (14:02 +0300)
committerRoland Dreier <roland@purestorage.com>
Thu, 9 Oct 2014 07:06:06 +0000 (00:06 -0700)
commit96f15198c1457df29b51ed151b1e5b2a223d1346
tree21ffd370da9a6d2f352cdb0f1cf1d6a6ce972586
parent6bb0279f95dc74082184d91b65743b295a2a11a6
IB/iser: Extend iser_free_ib_conn_res()

Put all connection IB related resources release in this routine.  One
exception is the cm_id which cannot be destroyed as the routine is
protected by the state mutex.  Also move its position to avoid forward
declaration.  While at it fix qp NULL assignment.

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