From b11e3d483d8be79b29c0aa550dcf4a466fe49ab7 Mon Sep 17 00:00:00 2001 From: np Date: Wed, 22 Oct 2014 18:55:44 +0000 Subject: [PATCH] cxgbe/iw_cxgbe: wake up waiters after flushing the qp. Obtained from: Chelsio --- sys/dev/cxgbe/iw_cxgbe/qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/cxgbe/iw_cxgbe/qp.c b/sys/dev/cxgbe/iw_cxgbe/qp.c index 44ad9cd7fa31..cf7476011101 100644 --- a/sys/dev/cxgbe/iw_cxgbe/qp.c +++ b/sys/dev/cxgbe/iw_cxgbe/qp.c @@ -1359,9 +1359,9 @@ int c4iw_modify_qp(struct c4iw_dev *rhp, struct c4iw_qp *qhp, qhp->ep = NULL; set_state(qhp, C4IW_QP_STATE_ERROR); free = 1; - wake_up(&qhp->wait); BUG_ON(!ep); flush_qp(qhp); + wake_up(&qhp->wait); out: mutex_unlock(&qhp->mutex);