]> git.baikalelectronics.ru Git - kernel.git/commit
netxen_nic: use spin_[un]lock_bh around tx_clean_lock
authorTony Camuso <tcamuso@redhat.com>
Thu, 30 Apr 2015 11:51:27 +0000 (07:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Apr 2015 20:37:29 +0000 (16:37 -0400)
commitc8de057af2c7860d7f5fd358ffd704541627813b
treee4e285dd32136cbc5d72718c42648d73cd629a01
parent63686b7a02dbc386d14029dca83fff7e3442f030
netxen_nic: use spin_[un]lock_bh around tx_clean_lock

While testing this driver with DEBUG_LOCKDEP and DEBUG_SPINLOCK
enabled did not produce any traces, it would be more prudent in the
case of tx_clean_lock to use spin_[un]lock_bh, since this lock is
manipulated in both the process and softirq contexts.

This patch was tested for functionality and regressions with netperf
and DEBUG_LOCKDEP and DEBUG_SPINLOCK enabled.

Signed-off-by: Tony Camuso <tcamuso@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c