]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2939a4d46878d1481a75d40618a2b6ebcb54111
tree588abe3834761bd39dd27abbb437369e130256a1
parent8d64424d202c1930446f908bacb9a3677286da0f
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