netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IB/mthca: comment fix
@ 2006-07-10 11:14 Michael S. Tsirkin
  2006-07-10 11:18 ` Arjan van de Ven
  2006-07-10 15:18 ` [PATCH updated] " Michael S. Tsirkin
  0 siblings, 2 replies; 8+ messages in thread
From: Michael S. Tsirkin @ 2006-07-10 11:14 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Michael S. Tsirkin, Ingo Molnar, Zach Brown, openib-general,
	linux-kernel, netdev

Hi Andrew,
Here's a cosmetic patch for IB/mthca. Pls drop it into -mm and on.

---

comment in mthca_qp.c makes it seem lockdep is the only reason WQ locks should
be initialized separately, but as Zach Brown and Roland pointed out, there are
other reasons, e.g. that mthca_wq_init is called from modify qp as well.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>

diff --git a/drivers/infiniband/hw/mthca/mthca_qp.c b/drivers/infiniband/hw/mthca/mthca_qp.c
index 490fc78..2f3917e 100644
--- a/drivers/infiniband/hw/mthca/mthca_qp.c
+++ b/drivers/infiniband/hw/mthca/mthca_qp.c
@@ -1114,7 +1114,7 @@ static int mthca_alloc_qp_common(struct 
 	qp->sq_policy    = send_policy;
 	mthca_wq_init(&qp->sq);
 	mthca_wq_init(&qp->rq);
-	/* these are initialized separately so lockdep can tell them apart */
+
 	spin_lock_init(&qp->sq.lock);
 	spin_lock_init(&qp->rq.lock);
 

-- 
MST

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

end of thread, other threads:[~2006-07-10 21:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-10 11:14 [PATCH] IB/mthca: comment fix Michael S. Tsirkin
2006-07-10 11:18 ` Arjan van de Ven
2006-07-10 11:31   ` Michael S. Tsirkin
2006-07-10 11:45     ` Arjan van de Ven
2006-07-10 11:59       ` Michael S. Tsirkin
2006-07-10 15:18 ` [PATCH updated] " Michael S. Tsirkin
2006-07-10 21:15   ` [PATCHv2] " Michael S. Tsirkin
2006-07-10 21:20     ` Zach Brown

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).