]> err.no Git - linux-2.6/commit
IPoIB/cm: spin_lock_irqsave() -> spin_lock_irq() replacements
authorRoland Dreier <rolandd@cisco.com>
Wed, 25 Apr 2007 04:30:37 +0000 (21:30 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 25 Apr 2007 04:30:37 +0000 (21:30 -0700)
commit37aebbde7023d75bf09fbadb6796276d0a65a068
tree070a552df6bca142b3aa7e56329c635c8fabee22
parentde493d47d8b4738827d8914a4dc94058c58f4249
IPoIB/cm: spin_lock_irqsave() -> spin_lock_irq() replacements

There are quite a few places in ipoib_cm.c where we know IRQs are
enabled because we do something that sleeps in the same function, so
we can convert several occurrences of spin_lock_irqsave() to a plain
spin_lock_irq().  This cleans up the source a little and makes the
code smaller too:

add/remove: 0/0 grow/shrink: 1/5 up/down: 3/-51 (-48)
function                                     old     new   delta
ipoib_cm_tx_reap                             403     406      +3
ipoib_cm_stale_task                          146     145      -1
ipoib_cm_dev_stop                            173     172      -1
ipoib_cm_tx_handler                          964     956      -8
ipoib_cm_rx_handler                          956     937     -19
ipoib_cm_skb_reap                            212     190     -22

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_cm.c