netxen: fix race in tx stop queue
authorRajesh Borundia <rajesh.borundia@qlogic.com>
Mon, 18 Oct 2010 02:03:41 +0000 (02:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2010 14:22:51 +0000 (07:22 -0700)
There is race between netif_stop_queue and netif_stopped_queue
check.So check once again if buffers are available to avoid race.
With above logic we can also get rid of tx lock in process_cmd_ring.

Signed-off-by: Rajesh Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found