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)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Dec 2018 19:22:34 +0000 (12:22 -0700)
commitfde201a466c6ad5efd72cb54fdf2cefa8b6c6ad7
tree94420f2360f69a9286473fafde212b50e82c606f
parent6e82f0ba00b0addeec27b3a95eb41e6223fc8c4f
lightnvm: pblk: add lock protection to list operations

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>
drivers/lightnvm/pblk-core.c