[dm-devel] [PATCH] dm-crypt: fix warning in shutdown path

2018-06-04 Thread Kent Overstreet
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. Signed-off-by: Kent Overstreet --- drivers/md/dm-crypt.c | 8 1 file changed, 4 insertions(+), 4

Re: [dm-devel] [PATCH] dm-crypt: fix warning in shutdown path

2018-06-02 Thread Jens Axboe
On 6/2/18 11:45 AM, Kent Overstreet wrote: > 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. Looks good, but needs a fixes line. I'll add one. -- Jens Axboe