lightnvm: pblk: add comments wrt locking in recovery path
authorJavier González <javier@javigon.com>
Tue, 11 Dec 2018 19:16:19 +0000 (20:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Dec 2018 19:22:34 +0000 (12:22 -0700)
commit361d889f830ef61e4eae442c4c89fb14b626375f
tree2bd986272d3a759d4ef957fcaf56f7e67f75711f
parentfde201a466c6ad5efd72cb54fdf2cefa8b6c6ad7
lightnvm: pblk: add comments wrt locking in recovery path

pblk's recovery path is single threaded and therefore a number of
assumptions regarding concurrency can be made. To avoid confusion, make
this explicit with a couple of comments in the code.

Signed-off-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
drivers/lightnvm/pblk-recovery.c