]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: fix race in tx stop queue
authorRajesh K Borundia <rajesh.borundia@qlogic.com>
Thu, 17 Jun 2010 02:56:41 +0000 (02:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jun 2010 15:57:56 +0000 (08:57 -0700)
commit1ca13283956fe52528f5619e4ef8ecf943e7dc3a
treefa285765677574d4aafb42c9fbbc32443a8e4597
parent4a7c8b3afa98b63662842507e87a69e8435cd306
qlcnic: fix race in tx stop queue

There is a 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 K Borundia <rajesh.borundia@qlogic.com>
Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic.h
drivers/net/qlcnic/qlcnic_hw.c
drivers/net/qlcnic/qlcnic_init.c
drivers/net/qlcnic/qlcnic_main.c