[openib-general] [PATCH] [TRIVIAL] remove unneeded locking in ib_mad_return_posted_recv_mads
Sean Hefty
mshefty at ichips.intel.com
Wed Nov 10 14:22:55 PST 2004
Removed locking, since this is in cleanup code.
- Sean
Index: core/mad.c
===================================================================
--- core/mad.c (revision 1197)
+++ core/mad.c (working copy)
@@ -1602,7 +1602,6 @@
struct ib_mad_private *recv;
struct ib_mad_list_head *mad_list;
- spin_lock_irqsave(&qp_info->recv_queue.lock, flags);
while (!list_empty(&qp_info->recv_queue.list)) {
mad_list = list_entry(qp_info->recv_queue.list.next,
@@ -1626,7 +1625,6 @@
}
qp_info->recv_queue.count = 0;
- spin_unlock_irqrestore(&qp_info->recv_queue.lock, flags);
}
/*
More information about the general
mailing list