diff options
author | Amit Kumar Salecha <amit.salecha@qlogic.com> | 2010-08-17 22:51:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-19 09:28:16 +0200 |
commit | 4be353d5169ef2477814b35fe46734a51dcecd09 (patch) | |
tree | 1981d2a73e355c552cab42deebe533083dda83e1 /drivers/net/netxen | |
parent | vlan: Match underlying dev carrier on vlan add (diff) | |
download | linux-4be353d5169ef2477814b35fe46734a51dcecd09.tar.xz linux-4be353d5169ef2477814b35fe46734a51dcecd09.zip |
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>
Diffstat (limited to 'drivers/net/netxen')
-rw-r--r-- | drivers/net/netxen/netxen_nic_init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c index c865dda2adf1..cabae7bb1fc6 100644 --- a/drivers/net/netxen/netxen_nic_init.c +++ b/drivers/net/netxen/netxen_nic_init.c @@ -1805,8 +1805,6 @@ netxen_post_rx_buffers(struct netxen_adapter *adapter, u32 ringid, netxen_ctx_msg msg = 0; struct list_head *head; - spin_lock(&rds_ring->lock); - producer = rds_ring->producer; head = &rds_ring->free_list; @@ -1853,8 +1851,6 @@ netxen_post_rx_buffers(struct netxen_adapter *adapter, u32 ringid, NETXEN_RCV_PRODUCER_OFFSET), msg); } } - - spin_unlock(&rds_ring->lock); } static void |