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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:38 +0000 (10:10 +0100)
commit99ab42f783da58540c80c91a2af8e8c764c46ca8
tree88342c69c6ba3cd1572d84a2a8bca82a2369f0a7
parent136e415e7a6a7d3d8666560b2147145c7636a455
lightnvm: pblk: protect line bitmap while submitting meta io

[ Upstream commit e57903fd972a398b7140d0bc055714e13a0e58c5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/lightnvm/pblk-core.c