[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090226172507.4b1f90c2@nehalam>
Date: Thu, 26 Feb 2009 17:25:07 -0800
From: Stephen Hemminger <shemminger@...tta.com>
To: Herbert Xu <herbert@...dor.apana.org.au>
Cc: "Eric W. Biederman" <ebiederm@...ssion.com>,
Patrick McHardy <kaber@...sh.net>,
Linux Netdev List <netdev@...r.kernel.org>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: IPv4/IPv6 sysctl unregistration deadlock
On Fri, 27 Feb 2009 08:59:45 +0800
Herbert Xu <herbert@...dor.apana.org.au> wrote:
> On Thu, Feb 26, 2009 at 08:49:24AM -0800, Stephen Hemminger wrote:
> >
> > - 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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists