netxen: Fix BUG "sleeping function called from invalid context"
authorManish Chopra <manish.chopra@qlogic.com>
Tue, 30 Sep 2014 07:56:35 +0000 (03:56 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Sep 2014 20:22:43 +0000 (16:22 -0400)
commit0d36882013e61dc47aa835c4ec98b1fe776c9db8
treed2bdf6d34aa1dae6b122364bdbd2b6a4e84e4bc9
parent705f1c869d577c8055736dd02501f26a2507dd5b
netxen: Fix BUG "sleeping function called from invalid context"

o __netxen_nic_down() function might sleep while holding spinlock_t(tx_clean_lock).
  Acquire this lock for only releasing TX buffers instead of taking it
  for whole down path.

Reported-by: Mike Galbraith <umgwanakikbuti@gmail.com>
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c
drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c