]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Sat, 6 Dec 2014 14:18:23 +0000 (15:18 +0100)
commit0a915349e2da9a0d2a9467934234c97ce855f733
tree3354275f38b2dffbb1cceaf4adebe428610452ee
parent63af3438d269f8a2c27ad1c2d5da7f4b190b8462
iser-target: Handle DEVICE_REMOVAL event on network portal listener correctly

commit 3b726ae2de02a406cc91903f80132daee37b6f1b upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/infiniband/ulp/isert/ib_isert.c