]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: fix inconsistent lock state
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Tue, 17 Aug 2010 20:51:51 +0000 (20:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 07:28:16 +0000 (00:28 -0700)
commit3f7fdb837b07b636f3c5204010739d07a25bcbf9
tree1981d2a73e355c552cab42deebe533083dda83e1
parent6fdb20d7fdc93fd53fae59fca18ba28ca2d5ce74
netxen: fix inconsistent lock state

Spin lock rds_ring->lock is used in poll routine, so other users should
use spin_lock_bh(). While posting rx buffers from netxen_nic_attach,
rds_ring->lock is not required, so cleaning it instead of fixing it by
spin_lock_bh().

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netxen/netxen_nic_init.c