summaryrefslogtreecommitdiffstats
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorKent Overstreet2018-06-02 19:45:04 +0200
committerJens Axboe2018-06-03 04:35:00 +0200
commitd00a11df691466772435ec02471292eae07885e5 (patch)
treedbb0648d1885936d8490f910612ccc4c9186ca88 /block/blk-merge.c
parentlightnvm: pblk: take bitmap alloc. out of critical section (diff)
downloadkernel-qcow2-linux-d00a11df691466772435ec02471292eae07885e5.tar.gz
kernel-qcow2-linux-d00a11df691466772435ec02471292eae07885e5.tar.xz
kernel-qcow2-linux-d00a11df691466772435ec02471292eae07885e5.zip
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: 6f1c819c219f ("dm: convert to bioset_init()/mempool_init()") Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Reported-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Mike Snitzer <snitzer@redhat.com> Fixed to always just use percpu_counter_sum() Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions