OSDN Git Service

IB/iser: Release the iscsi endpoint if ep_disconnect wasn't called
authorAriel Nahum <arieln@mellanox.com>
Sun, 18 Jan 2015 14:51:07 +0000 (16:51 +0200)
committerRoland Dreier <roland@purestorage.com>
Tue, 17 Feb 2015 20:33:14 +0000 (12:33 -0800)
commit9a3119e4b787d8c855202eb0388b213f86f88714
treef3bdbad5eb0031dae9a31472f2e97c0aba0428a7
parent6606e6a2ff2710b473838b291dc533cd8fc1471f
IB/iser: Release the iscsi endpoint if ep_disconnect wasn't called

In some cases, we might reach the iser connection termination without
ep_disconnect being invoked (for example if user-space daemon doesn't
exists. In this case, we need to free the iscsi endpoint when we
remove the iser connection.

Signed-off-by: Ariel Nahum <arieln@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/iser/iser_verbs.c