]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Releasing resources with children
authorMatthew Wilcox <willy@parisc-linux.org>
Thu, 31 Dec 2020 22:05:08 +0000 (22:05 +0000)
committerJohannes Weiner <hannes@cmpxchg.org>
Thu, 31 Dec 2020 22:05:08 +0000 (22:05 +0000)
commit450345ec8cf0f39957f8af3773f9eaeab36fc022
tree0b7c413d06098225ad6c24a1fe06b2a727d70b1e
parentb02d127d0780b2aa79629f10a1fc81ce957d3cbc
Releasing resources with children

What does it mean to release a resource with children?  Should the children
become children of the released resource's parent?  Should they be released
too?  Should we fail the release?

I bet we have no callers who expect this right now, but with
insert_resource() we may get some.  At the point where someone hits this
BUG we can figure out what semantics we want.

Signed-off-by: Matthew Wilcox <willy@parisc-linux.org>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/resource.c