Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Oct 2014 18:55:44 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273480 - head/sys/dev/cxgbe/iw_cxgbe
Message-ID:  <201410221855.s9MItixN011521@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410221855.s9MItixN011521>