Re: [RFC] How should delete_resource() handle children?

From: Randy.Dunlap
Date: Wed Feb 18 2004 - 21:20:32 EST


On Thu, 19 Feb 2004 13:12:18 +1100 Nick Piggin <piggin@xxxxxxxxxxxxxxx> wrote:

|
|
| Randy.Dunlap wrote:
|
| >On Tue, 10 Feb 2004 19:33:49 +0000 Matthew Wilcox <willy@xxxxxxxxxx> wrote:
| >
| >|
| >| If you call release_resource() on a resource that has children, all
| >| of those children are silently removed from the list too. Does anybody
| >| currently depend on that behaviour?
| >|
| >
| ...
|
| >|
| >|
| >| Comments?
| >
| >Ideally (or if nothing depends on the current behavior), I think it
| >should just be an error (return -EINVAL), not a BUG_ON(). I.e.,
| >releasing a resource should be an explicit action.
| >
| >
|
| -EBUSY?

Yes, that makes more sense.

--
~Randy
-
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/