We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f75b7a5 commit dbf9227Copy full SHA for dbf9227
drivers/infiniband/core/mad.c
@@ -2188,7 +2188,6 @@ static int retry_send(struct ib_mad_send_wr_private *mad_send_wr)
2188
2189
if (!ret) {
2190
mad_send_wr->refcount++;
2191
- list_del(&mad_send_wr->agent_list);
2192
list_add_tail(&mad_send_wr->agent_list,
2193
&mad_send_wr->mad_agent_priv->send_list);
2194
}
@@ -2223,10 +2222,10 @@ static void timeout_sends(void *data)
2223
2222
break;
2224
2225
+ list_del(&mad_send_wr->agent_list);
2226
if (!retry_send(mad_send_wr))
2227
continue;
2228
2229
2230
spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
2231
2232
mad_send_wc.wr_id = mad_send_wr->wr_id;
0 commit comments