]> git.baikalelectronics.ru Git - kernel.git/commit
[TOKENRING]: Use interrupt-safe locking with rif_lock.
authorJay Vosburgh <fubar@us.ibm.com>
Thu, 18 Aug 2005 21:04:51 +0000 (14:04 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Aug 2005 21:04:51 +0000 (14:04 -0700)
commitedc3c9893243a3e39bee2ab9c127bcac2cc74cb8
tree95bafd6d3dbd0f7ca8bc0c41c2046a002e7c7660
parentdb1c1e30937a1fe6096ef1ba0c5a12b49ab1b86f
[TOKENRING]: Use interrupt-safe locking with rif_lock.

Change operations on rif_lock from spin_{un}lock_bh to
spin_{un}lock_irq{save,restore} equivalents.  Some of the
rif_lock critical sections are called from interrupt context via
tr_type_trans->tr_add_rif_info.  The TR NIC drivers call tr_type_trans
from their packet receive handlers.

Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/802/tr.c