mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
The counter for the number of allocated pages includes pages in the
mempool's reserve, so checking that the number of allocated pages is 0
needs to happen after we exit the mempool.
Fixes: 6f1c819c21 ("dm: convert to bioset_init()/mempool_init()")
Signed-off-by: Kent Overstreet <[email protected]>
Reported-by: Krzysztof Kozlowski <[email protected]>
Acked-by: Mike Snitzer <[email protected]>
Fixed to always just use percpu_counter_sum()
Signed-off-by: Jens Axboe <[email protected]>