dm thin: fix memory leak of singleton bio-prison cell
Add missing mempool_free() to __cell_release_singleton().
This is a pretty significant leak that will accumulate to over 2GB of
leaked memory just from running the full thinp-test-suite. Leak was
known to exist but the kmalloc_pool which was used for prison cell
allocation caused all leaked memory to be attributed to the "size-128"
cache. kmemleak proved useful in identifying the source of this
illusive leak.
static void cell_release_singleton(struct cell *cell, struct bio *bio)
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
04-23-2012, 07:24 AM
Joe Thornber
dm thin: fix memory leak of singleton bio-prison cell
On Thu, Apr 12, 2012 at 06:34:34PM -0400, Mike Snitzer wrote:
> Add missing mempool_free() to __cell_release_singleton().
>
> This is a pretty significant leak that will accumulate to over 2GB of
> leaked memory just from running the full thinp-test-suite.
When was this introduced? With agk's tweaks for 3.4?
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel