diff options
author | stephen hemminger <shemminger@vyatta.com> | 2011-07-22 12:53:56 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-15 18:31:39 -0700 |
commit | c8656c500dd6e88d427547abe2859213a916a3ea (patch) | |
tree | f4422706c2691287c1d85543d4cd5328af3c040b /net/ipv4/ipmr.c | |
parent | 7106159f8bd33bd5e5b0ea2c87e499117fc22c69 (diff) |
net: allow netif_carrier to be called safely from IRQ
[ Upstream commit 1821f7cd65ad9ea56580b830ac79bf4c4fef59cb ]
As reported by Ben Greer and Froncois Romieu. The code path in
the netif_carrier code leads it to try and disable
a late workqueue to reenable it immediately
netif_carrier_on
-> linkwatch_fire_event
-> linkwatch_schedule_work
-> cancel_delayed_work
-> del_timer_sync
If __cancel_delayed_work is used instead then there is no
problem of waiting for running linkwatch_event.
There is a race between linkwatch_event running re-scheduling
but it is harmless to schedule an extra scan of the linkwatch queue.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/ipv4/ipmr.c')
0 files changed, 0 insertions, 0 deletions