Re: IPv4/IPv6 sysctl unregistration deadlock

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Saturday, March 7, 2009 - 8:36 pm

David Miller <davem@davemloft.net> writes:


From the further brainstorming department...

It appears we are using the wait for the completion
for two distinct purposes.

Waiting until it is safe to free storage.

Blocking module unregistration until the all of the
users of the code are gone.

I'm wondering if we could move the memory freeing.

And consolidate the waiting ultimately moving the
wait for completion into netdev_run_todo after
we drop the lock.

The reason I care is that it looks like to get hotplug
handling sane, I'm going to need to implement a generic
version of what sysfs, proc and sysctl are doing, and I
expect that generic version belongs in the vfs ultimately
giving us the capability to implement revoke.

So I am going to be revisiting how the code works, and if
I can come up with a cleaner solution to the networking
stack it would be a good time to implement it.

Eric
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Tue Feb 24, 10:23 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Herbert Xu, (Tue Feb 24, 11:19 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Tue Feb 24, 11:23 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Wed Feb 25, 12:18 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Herbert Xu, (Wed Feb 25, 1:43 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Eric W. Biederman, (Wed Feb 25, 11:06 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Eric W. Biederman, (Wed Feb 25, 11:10 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Herbert Xu, (Wed Feb 25, 11:22 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Eric W. Biederman, (Thu Feb 26, 12:18 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Stephen Hemminger, (Thu Feb 26, 9:49 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Stephen Hemminger, (Thu Feb 26, 9:55 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Eric W. Biederman, (Thu Feb 26, 12:01 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Stephen Hemminger, (Thu Feb 26, 1:24 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Herbert Xu, (Thu Feb 26, 5:59 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Stephen Hemminger, (Thu Feb 26, 6:25 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Ben Greear, (Fri Feb 27, 11:26 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Stephen Hemminger, (Fri Feb 27, 11:38 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Mon Mar 2, 4:07 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Mon Mar 2, 4:21 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Ben Greear, (Mon Mar 2, 3:11 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Mon Mar 2, 3:20 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, David Miller, (Mon Mar 2, 3:47 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, Patrick McHardy, (Mon Mar 2, 4:03 pm)
Re: IPv4/IPv6 sysctl unregistration deadlock, David Miller, (Tue Mar 3, 1:48 am)
Re: IPv4/IPv6 sysctl unregistration deadlock, Eric W. Biederman, (Sat Mar 7, 8:36 pm)