Files
linux/drivers
Michael Chan 469665459d [TG3]: Fix irq_sync race condition.
Gagan Arneja <gaagaan@gmail.com> pointed out that tg3_reset_task()
could potentially race with another thread calling tg3_full_lock()
such as the ethtool_set_xxx() functions.  This may trigger the
BUG_ON() in tg3_irq_quiesce() or cause the irq_sync flag to be out-
of-sync.

I think the easiest way to fix this is to get the tp->lock first
before setting the irq_sync flag.  This is safe to do because the
tp->lock is never grabbed by the irq handler.  This change will
guarantee that the irq_sync flag updates will be serialized.  We also
have to change one spot to call tg3_netif_start() (which clears the
irq_sync flag) before releasing the tp->lock.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-07-11 19:47:19 -07:00
..
2007-07-02 21:06:48 -07:00
…
2007-06-08 12:41:08 -07:00
2007-07-10 08:03:34 +02:00
2007-07-10 17:51:13 -07:00
…
2007-06-28 11:34:53 -07:00
…
…
2007-07-10 08:03:34 +02:00
2007-06-08 17:23:33 -07:00
…
2007-07-11 19:47:19 -07:00
2007-05-21 09:18:19 -07:00
…
2007-07-10 11:24:54 +02:00
2007-07-02 10:12:34 -04:00
…
…
2007-07-10 17:33:05 +01:00
2007-06-28 11:34:54 -07:00
2007-07-10 11:28:31 +01:00