netdev
[Top] [All Lists]

Patch: Make linkwatch more robust against rtnl holders

To: netdev@xxxxxxxxxxx
Subject: Patch: Make linkwatch more robust against rtnl holders
From: Stefan Rompf <srompf@xxxxxx>
Date: Sun, 15 Feb 2004 15:11:47 +0100
Cc: davem@xxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.6.1
Hi David,

the attached patch updates the linkwatch code so that it backs off and retries 
whenever it cannot get the rtnl semaphore.

This makes it more robust against unrelated processes calling 
flush_scheduled_work() while holding the rtnl lock. This problem was reported 
on netdev for the sungem driver.

I preferred rescheduling every 1/10 second against creating a kernel thread as 
the code is shorter, and the situation should not happen anyway.

Stefan

Attachment: patch-linkwatch-2.6.1
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>