Re: [PATCH v2 1/4] debugfs: Implement debugfs_remove_recursive()

From: Greg KH
Date: Tue Jul 01 2008 - 14:41:21 EST


On Tue, Jul 01, 2008 at 03:14:51PM +0200, Haavard Skinnemoen wrote:
> debugfs_remove_recursive() will remove a dentry and all its children.
> Drivers can use this to zap their whole debugfs tree so that they don't
> need to keep track of every single debugfs dentry they created.
>
> It may fail to remove the whole tree in certain cases:
>
> sh-3.2# rmmod atmel-mci < /sys/kernel/debug/mmc0/ios/clock
> mmc0: card b368 removed
> atmel_mci atmel_mci.0: Lost dma0chan1, falling back to PIO
> sh-3.2# ls /sys/kernel/debug/mmc0/
> ios
>
> But I'm not sure if that case can be handled in any sane manner.
>
> Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@xxxxxxxxx>
> Cc: Greg KH <greg@xxxxxxxxx>

If this is tied to some other series that needs to go through some other
maintainer, feel free to add:
Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
to the patch and let someone else take it.

Otherwise, if you need me to take it, I will be glad to do so, just let
me know what is easiest for you.

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/