[openib-general] [PATCH] fix to acquire spinlock
Sean Hefty
mshefty at ichips.intel.com
Mon Sep 27 11:21:51 PDT 2004
Index: ib_mad.c
===================================================================
--- ib_mad.c (revision 893)
+++ ib_mad.c (working copy)
@@ -342,7 +342,7 @@
ret = ib_post_send(mad_agent->qp, &wr, &bad_wr);
if (ret) {
/* Unlink from posted send MAD list */
- spin_unlock_irqrestore(&port_priv->send_list_lock, flags);
+ spin_lock_irqsave(&port_priv->send_list_lock, flags);
list_del(&mad_send_wr->send_list);
port_priv->send_posted_mad_count--;
spin_unlock_irqrestore(&port_priv->send_list_lock, flags);
More information about the general
mailing list