From 15d2609293dde7aad960dc309475764893f949f8 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 3 Aug 2011 12:34:31 +0000 Subject: [PATCH] ib_srpt: Avoid that removing ib_srpt while I/O is ongoing sometimes triggers a hang git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3796 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 199f56255..4222b85a7 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1953,7 +1953,7 @@ static bool srpt_process_completion(struct ib_cq *cq, EXTRACHECKS_WARN_ON(cq != ch->cq); - keep_going = ch->state != CH_RELEASING; + keep_going = ch->state <= CH_LIVE; if (keep_going) ib_req_notify_cq(cq, IB_CQ_NEXT_COMP); while ((n = ib_poll_cq(cq, ARRAY_SIZE(ch->wc), wc)) > 0) {