From 2dc3be5a42a8b854d2d92c6fb959db876bb16ea3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Sep 2011 16:20:48 +0000 Subject: [PATCH] Merge trunk r3632 properly git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3861 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 773e96941..6dd85a275 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3042,7 +3042,7 @@ static int srpt_perform_rdmas(struct srpt_rdma_ch *ch, ioctx->ioctx.index); msleep(1000); } - while (atomic_read(&ch->state) != CH_DISCONNECTING && + while (atomic_read(&ch->state) != CH_RELEASING && !ioctx->rdma_aborted) { PRINT_INFO("Waiting until RDMA abort finished [%d]", ioctx->ioctx.index);