# Re: IPv4/IPv6 sysctl unregistration deadlock

- From: Stephen Hemminger \<hidden\>
- Date: 2009-02-27 01:25:12 
- List: netdev
- Page: https://ratatoskr.run/netdev/2009/02/10818948
- Thread: https://ratatoskr.run/netdev/2009/02/10818776/t.md

```text
On Fri, 27 Feb 2009 08:59:45 +0800
Herbert Xu [ref] 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.
```
