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

From: Nick Piggin
Date: Wed Feb 18 2004 - 21:16:45 EST




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?
-
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/