Re: IPv4/IPv6 sysctl unregistration deadlock
From: Stephen Hemminger <hidden>
Date: 2009-02-27 01:25:12
From: Stephen Hemminger <hidden>
Date: 2009-02-27 01:25:12
On Fri, 27 Feb 2009 08:59:45 +0800 Herbert Xu [off-list ref] wrote:
On Thu, Feb 26, 2009 at 08:49:24AM -0800, Stephen Hemminger wrote:quoted
- rtnl_lock(); + if (!rtnl_trylock()) + return -ERESTARTSYS;This is going to spin instead of sleep on contention, is that intended? Cheers,
It walks all the way back out to VFS, which is what you have to do since the sysctl may move.