[ofa-general] spin_lock_irqsave in ib_send_mad

Sean Hefty sean.hefty at intel.com
Wed Jun 10 10:01:21 PDT 2009


>mad.c:ib_send_mad() calls ib_post_send() after taking spin_lock_irqsave().
>
>Is it really necessary to take the spinlock during the entire time of
>ib_post_send()? It appears like it is only necessary for list manipulation!

It protects the list and the counters.  It's technically not needed around
ib_post_send.

- Sean




More information about the general mailing list