diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-11-04 09:15:04 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-04 21:31:48 (GMT) |
commit | 5b1906241905d9bd1abe920854b3d43c2b9c85e1 (patch) | |
tree | d259390621daa923977f00fb43415a09da565cd5 /drivers/net/ethernet/broadcom/tg3.h | |
parent | db21997379906fe7657d360674e1106d80b020a4 (diff) | |
download | linux-5b1906241905d9bd1abe920854b3d43c2b9c85e1.tar.xz |
tg3: Eliminate timer race with reset_task
During shutdown, it is impossible to reliably disable the timer and
reset_task threads. Each thread can schedule the other, which leads to
shutdown code that chases its tail.
To fix the problem, this patch removes the ability of tg3_reset_task to
schedule a new timer thread. To support this change, tg3_timer no
longer terminates itself, but rather goes into a polling mode.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/tg3.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h index 610fd84..94b4bd0 100644 --- a/drivers/net/ethernet/broadcom/tg3.h +++ b/drivers/net/ethernet/broadcom/tg3.h @@ -2879,7 +2879,6 @@ enum TG3_FLAGS { TG3_FLAG_JUMBO_CAPABLE, TG3_FLAG_CHIP_RESETTING, TG3_FLAG_INIT_COMPLETE, - TG3_FLAG_RESTART_TIMER, TG3_FLAG_TSO_BUG, TG3_FLAG_IS_5788, TG3_FLAG_MAX_RXPEND_64, |