Skip to content
Commit d00a11df authored by Kent Overstreet's avatar Kent Overstreet Committed by Jens Axboe
Browse files

dm-crypt: fix warning in shutdown path



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: 6f1c819c ("dm: convert to bioset_init()/mempool_init()")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
Reported-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarMike Snitzer <snitzer@redhat.com>

Fixed to always just use percpu_counter_sum()

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 9cfd5a95
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment