Re: [PATCH, resend] netconsole: take care of NETDEV_UNREGISTERevent

From: David Miller
Date: Fri May 01 2009 - 18:24:56 EST


From: Matt Mackall <mpm@xxxxxxxxxxx>
Date: Thu, 30 Apr 2009 11:48:35 -0500

> On Thu, 2009-04-30 at 08:45 +0200, Bruno Prémont wrote:
>> 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 <bonbons@xxxxxxxxxxxxxxxxx>
>
> Acked-by: Matt Mackall <mpm@xxxxxxxxxxx>

Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/