From: Bruno Prémont Date: Wed, 29 Apr 2009 20:45:17 +0000 (+0000) Subject: netconsole: take care of NETDEV_UNREGISTER event X-Git-Tag: v2.6.30-rc5~39^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2382b15bcc39228572ccf1d9a1185dcabb84c833;p=pandora-kernel.git netconsole: take care of NETDEV_UNREGISTER event When netconsole is loaded and a network interface fades away (e.g. on rmmod $interface_driver_module) the rmmod remains stuck and some locks are taken that prevent any additional module loading/unloading as well as interface up/down changes. In addition kernel logs (and console) get flooded at 10s interval with [ 122.464065] unregister_netdevice: waiting for eth0 to become free. Usage count = 1 [ 132.704059] unregister_netdevice: waiting for eth0 to become free. Usage count = 1 This patch lets netconsole take NETDEV_UNREGISTER event into account and release the affected interface if it was in use. Signed-off-by: Bruno Prémont Acked-by: Matt Mackall Signed-off-by: David S. Miller --- Reading git-diff-tree failed