From: Herbert Xu When the jiffies wrap around or when the system boots up for the first time, down events can be delayed indefinitely since we no longer update linkwatch_nextevent when only urgent events are processed. This patch fixes this by setting linkwatch_nextevent when a wrap-around occurs. Signed-off-by: Herbert Xu Signed-off-by: Andrew Morton --- net/core/link_watch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN net/core/link_watch.c~link_watch-eliminate-potential-delay-on-wrap-around net/core/link_watch.c --- a/net/core/link_watch.c~link_watch-eliminate-potential-delay-on-wrap-around +++ a/net/core/link_watch.c @@ -101,8 +101,10 @@ static void linkwatch_schedule_work(unsi return; /* If we wrap around we'll delay it by at most HZ. */ - if (delay > HZ) + if (delay > HZ) { + linkwatch_nextevent = jiffies; delay = 0; + } schedule_delayed_work(&linkwatch_work, delay); } _