]> git.baikalelectronics.ru Git - kernel.git/commit
iser-target: Handle DEVICE_REMOVAL event on network portal listener correctly
authorSagi Grimberg <sagig@dev.mellanox.co.il>
Tue, 28 Oct 2014 20:45:03 +0000 (13:45 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 3 Nov 2014 06:04:48 +0000 (22:04 -0800)
commitdcfd2bda0ecb8702c881f452b16e77d8117a5f8e
treea340e63312c5b6ea084f92a6199a9b9ed008f8aa
parent5579507c6faf52ec535824e181fa38a0899c0783
iser-target: Handle DEVICE_REMOVAL event on network portal listener correctly

In this case the cm_id->context is the isert_np, and the cm_id->qp
is NULL, so use that to distinct the cases.

Since we don't expect any other events on this cm_id we can
just return -1 for explicit termination of the cm_id by the
cma layer.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Cc: <stable@vger.kernel.org> # 3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c