From a0cd39950777a36ece9fbd24379b3f576c578855 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 24 Mar 2014 11:59:27 +0000 Subject: [PATCH] ib_srpt: Clean up srpt_destroy_ch_ib() All callers guarantee that the completion queue is empty so it is not necessary to invoke ib_poll_cq() from inside this function. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5366 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 65cb5b938..19c0f87ec 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2185,15 +2185,8 @@ err_destroy_cq: static void srpt_destroy_ch_ib(struct srpt_rdma_ch *ch) { - TRACE_ENTRY(); - - while (ib_poll_cq(ch->cq, ARRAY_SIZE(ch->wc), ch->wc) > 0) - ; - ib_destroy_qp(ch->qp); ib_destroy_cq(ch->cq); - - TRACE_EXIT(); } /**