]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Make sure nobody's leaking resources
authorMatthew Wilcox <matthew@wil.cx>
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)
commitb02d127d0780b2aa79629f10a1fc81ce957d3cbc
treef17c1f4552b29ab542af0518216c8679a46818e3
parent71bfa7162f83ecc9d4653d45f644e44a8b4ef401
Make sure nobody's leaking resources

Currently, releasing a resource also releases all of its children.  That
made sense when request_resource was the main method of dividing up the
memory map.  With the increased use of insert_resource, it seems to me that
we should instead reparent the newly orphaned resources.  Before we do
that, let's make sure that nobody's actually relying on the current
semantics.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Cc: Greg KH <greg@kroah.com>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/resource.c