Author: np
Date: Wed Oct 22 18:55:44 2014
New Revision: 273480
URL: https://svnweb.freebsd.org/changeset/base/273480

Log:
  cxgbe/iw_cxgbe: wake up waiters after flushing the qp.
  
  Obtained from:        Chelsio

Modified:
  head/sys/dev/cxgbe/iw_cxgbe/qp.c

Modified: head/sys/dev/cxgbe/iw_cxgbe/qp.c
==============================================================================
--- head/sys/dev/cxgbe/iw_cxgbe/qp.c    Wed Oct 22 18:55:36 2014        
(r273479)
+++ head/sys/dev/cxgbe/iw_cxgbe/qp.c    Wed Oct 22 18:55:44 2014        
(r273480)
@@ -1359,9 +1359,9 @@ err:
        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);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to