Re: [PATCH] net: deadlock during net device unregistration

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Herbert Xu
Date: Sunday, October 5, 2008 - 12:38 am

On Sun, Oct 05, 2008 at 09:28:23AM +0200, Stephen Hemminger wrote:


Well as it is we have no hotplug events in netdev_run_todo at
all.  They're all in unregister_netdevice which is where they
should be and that runs under the RTNL.

In fact it would be a bug if we had anything in netdev_run_todo
tied to sysfs because once we get here we've relinquished our
ownership of the device name so someone else is free to readd
a device with the same name.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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:
[PATCH] net: deadlock during net device unregistration, Benjamin Thery, (Mon Sep 29, 10:54 am)
Re: [PATCH] net: deadlock during net device unregistration, Jarek Poplawski, (Mon Sep 29, 11:32 pm)
Re: [PATCH] net: deadlock during net device unregistration, Benjamin Thery, (Tue Sep 30, 4:52 am)
Re: [PATCH] net: deadlock during net device unregistration, Benjamin Thery, (Tue Sep 30, 7:07 am)
Re: [PATCH] net: deadlock during net device unregistration, Jarek Poplawski, (Tue Sep 30, 7:42 am)
Re: [PATCH] net: deadlock during net device unregistration, Jarek Poplawski, (Tue Sep 30, 7:57 am)
Re: [PATCH] net: deadlock during net device unregistration, Benjamin Thery, (Tue Sep 30, 8:18 am)
Re: [PATCH] net: deadlock during net device unregistration, Eric W. Biederman, (Thu Oct 2, 5:41 pm)
Re: [PATCH] net: deadlock during net device unregistration, Jarek Poplawski, (Sat Oct 4, 11:55 pm)
Re: [PATCH] net: deadlock during net device unregistration, Jarek Poplawski, (Sun Oct 5, 12:12 am)
Re: [PATCH] net: deadlock during net device unregistration, Stephen Hemminger, (Sun Oct 5, 12:28 am)
Re: [PATCH] net: deadlock during net device unregistration, Herbert Xu, (Sun Oct 5, 12:38 am)