summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h
diff options
context:
space:
mode:
authorAnish Bhatt <anish@chelsio.com>2014-08-20 13:44:06 -0700
committerDavid S. Miller <davem@davemloft.net>2014-08-21 21:45:36 -0700
commit29aaee65bc28cc75281dc9fe0998cc5e10ac37f9 (patch)
tree7cfffd8e08c218490a8ac8ba48ee68a6906e44eb /drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h
parent061079ac0b9be7a578dcd09f7865c2c0d6ac894a (diff)
downloadlinux-29aaee65bc28cc75281dc9fe0998cc5e10ac37f9.tar.gz
linux-29aaee65bc28cc75281dc9fe0998cc5e10ac37f9.tar.bz2
linux-29aaee65bc28cc75281dc9fe0998cc5e10ac37f9.zip
cxgb4: Fix race condition in cleanup
There is a possible race condition when we unregister the PCI Driver and then flush/destroy the global "workq". This could lead to situations where there are tasks on the Work Queue with references to now deleted adapter data structures. Instead, have per-adapter Work Queues which were instantiated and torn down in init_one() and remove_one(), respectively. v2: Remove unnecessary call to flush_workqueue() before destroy_workqueue() Signed-off-by: Anish Bhatt <anish@chelsio.com> Signed-off-by: Casey Leedom <leedom@chelsio.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h')
0 files changed, 0 insertions, 0 deletions