OSDN Git Service

lightnvm: pblk: protect line bitmap while submitting meta io
authorRakesh Pandit <rakesh@tuxera.com>
Fri, 13 Oct 2017 12:45:56 +0000 (14:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commite57903fd972a398b7140d0bc055714e13a0e58c5
tree588abe3834761bd39dd27abbb437369e130256a1
parent32c662c58a9b9d0c99e713a14ca323a9a91c73a0
lightnvm: pblk: protect line bitmap while submitting meta io

It seems pblk_dealloc_page would race against pblk_alloc_pages for
line bitmap for sector allocation.The chances are very low but might
as well protect the bitmap properly.

Signed-off-by: Rakesh Pandit <rakesh@tuxera.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c