Re: [PATCH 1/9] uml: avoid sysfs warning on hot-unplug

From: Greg KH
Date: Tue Jan 17 2006 - 20:10:45 EST


> From: Jeff Dike <jdike@xxxxxxxxxxx>, Paolo 'Blaisorblade' Giarrusso <blaisorblade@xxxxxxxx>
>
> Define a release method for the ubd and network driver so that sysfs doesn't
> complain when one is removed via:

What? No. The kernel is complaining for a reason, don't try to
out-smart it.

>
> host $ uml_mconsole <umid> remove <dev>
>
> Done by Jeff around January for ubd only, later lost, then restored in his tree
> - however I'm merging it now since there's no reason to leave this here.
>
> We don't need to do any cleanup in the new added method, because when hot-unplug
> is done by uml_mconsole we already handle cleanup in mconsole infrastructure,
> i.e. mc_device->remove (net_remove/ubd_remove), which is also the calling
> method.

Huh? You have 2 different release functions for the same object? And
how do you know which one is correct? That does not sound right at all.

Please fix this correctly.

thanks,

greg k-h
-
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/