lkml.org 
[lkml]   [2005]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH 11/27] Simplify calling of list_del in MAD
From
Date
Simplify calling of list_del. 
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Hal Rosenstock <halr@voltaire.com>

This patch depends on patch 10/27.

--
mad.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
diff -uprN linux-2.6.13-rc2-mm1/drivers/infiniband10/core/mad.c linux-2.6.13-rc2-mm1/drivers/infiniband11/core/mad.c
-- linux-2.6.13-rc2-mm1/drivers/infiniband10/core/mad.c 2005-07-09 17:25:28.000000000 -0400
+++ linux-2.6.13-rc2-mm1/drivers/infiniband11/core/mad.c 2005-07-09 17:41:24.000000000 -0400
@@ -2188,7 +2188,6 @@ static int retry_send(struct ib_mad_send

if (!ret) {
mad_send_wr->refcount++;
- list_del(&mad_send_wr->agent_list);
list_add_tail(&mad_send_wr->agent_list,
&mad_send_wr->mad_agent_priv->send_list);
}
@@ -2223,10 +2222,10 @@ static void timeout_sends(void *data)
break;
}

+ list_del(&mad_send_wr->agent_list);
if (!retry_send(mad_send_wr))
continue;

- list_del(&mad_send_wr->agent_list);
spin_unlock_irqrestore(&mad_agent_priv->lock, flags);

mad_send_wc.wr_id = mad_send_wr->wr_id;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-07-11 16:30    [W:0.034 / U:0.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site