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
This commit is contained in:
Bart Van Assche
2011-08-03 12:34:31 +00:00
parent 7ea186090f
commit 15d2609293

View File

@@ -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) {