LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] 2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state.
@ 2007-02-15 14:49 Steve Wise
  2007-02-15 21:48 ` Roland Dreier
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Wise @ 2007-02-15 14:49 UTC (permalink / raw)
  To: Roland Dreier; +Cc: openib-general, linux-kernel, netdev

From: Steve Wise <swise@opengridcomputing.com>

Fail posts synchronously when in TERMINATE state.

For T3B devices, mark user qp in error once we transition
to TERMINATE.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---

 drivers/infiniband/hw/cxgb3/iwch_qp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index e066727..da13a38 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -846,6 +846,8 @@ int iwch_modify_qp(struct iwch_dev *rhp,
 			break;
 		case IWCH_QP_STATE_TERMINATE:
 			qhp->attr.state = IWCH_QP_STATE_TERMINATE;
+			if (t3b_device(qhp->rhp))
+				cxio_set_wq_in_error(&qhp->wq);
 			if (!internal)
 				terminate = 1;
 			break;


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] 2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state.
  2007-02-15 14:49 [PATCH] 2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state Steve Wise
@ 2007-02-15 21:48 ` Roland Dreier
  0 siblings, 0 replies; 2+ messages in thread
From: Roland Dreier @ 2007-02-15 21:48 UTC (permalink / raw)
  To: Steve Wise; +Cc: openib-general, linux-kernel, netdev

thanks, applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-15 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-15 14:49 [PATCH] 2.6.21 iw_cxgb3 Fail posts synchronously when in TERMINATE state Steve Wise
2007-02-15 21:48 ` Roland Dreier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).