]> www.infradead.org Git - users/dwmw2/linux.git/commit
lightnvm: pblk: add lock protection to list operations
authorHua Su <suhua.tanke@gmail.com>
Tue, 11 Dec 2018 19:16:18 +0000 (20:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:18 +0000 (20:02 +0100)
commit521b8625eefb1cc1dde1621d9d7b5892a64af031
treee09e93dc34dfb3c5b309afa2e1e6e92a2988c8b7
parent11dd6d2155296700959615360ea086c215db58db
lightnvm: pblk: add lock protection to list operations

[ Upstream commit fde201a466c6ad5efd72cb54fdf2cefa8b6c6ad7 ]

Protect the list_add on the pblk_line_init_bb() error
path in case this code is used for some other purpose
in the future.

Signed-off-by: Hua Su <suhua.tanke@gmail.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/lightnvm/pblk-core.c