From: Cong Wang Date: Mon, 12 May 2014 22:11:20 +0000 (-0700) Subject: rtnetlink: wait for unregistering devices in rtnl_link_unregister() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=200b916f3575bdf11609cb447661b8d5957b0bbf;p=pandora-kernel.git rtnetlink: wait for unregistering devices in rtnl_link_unregister() From: Cong Wang commit 50624c934db18ab90 (net: Delay default_device_exit_batch until no devices are unregistering) introduced rtnl_lock_unregistering() for default_device_exit_batch(). Same race could happen we when rmmod a driver which calls rtnl_link_unregister() as we call dev->destructor without rtnl lock. For long term, I think we should clean up the mess of netdev_run_todo() and net namespce exit code. Cc: Eric W. Biederman Cc: David S. Miller Signed-off-by: Cong Wang Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed