OSDN Git Service

iser-target: Fix possible deadlock in RDMA_CM connection error
authorSagi Grimberg <sagig@mellanox.com>
Sun, 29 Mar 2015 12:52:04 +0000 (15:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:03:53 +0000 (22:03 +0200)
commitc1398bc9478760e098fd1a36c9d67eeaf1bc5813
treeca522141878f36fbb8c5e1061b1519638e458a2c
parent6c617001eadca79dc3c26a6e2d2844ad48c1a178
iser-target: Fix possible deadlock in RDMA_CM connection error

commit 4a579da2586bd3b79b025947ea24ede2bbfede62 upstream.

Before we reach to connection established we may get an
error event. In this case the core won't teardown this
connection (never established it), so we take care of freeing
it ourselves.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c