diff options
author | Javier González <javier@javigon.com> | 2018-12-11 22:16:19 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-11 22:22:34 +0300 |
commit | 361d889f830ef61e4eae442c4c89fb14b626375f (patch) | |
tree | 2bd986272d3a759d4ef957fcaf56f7e67f75711f /drivers/lightnvm/pblk-core.c | |
parent | fde201a466c6ad5efd72cb54fdf2cefa8b6c6ad7 (diff) | |
download | linux-361d889f830ef61e4eae442c4c89fb14b626375f.tar.xz |
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>
Diffstat (limited to 'drivers/lightnvm/pblk-core.c')
-rw-r--r-- | drivers/lightnvm/pblk-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index 44c5dc046912..f1b411e7c7c9 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1276,6 +1276,7 @@ static int pblk_line_prepare(struct pblk *pblk, struct pblk_line *line) return 0; } +/* Line allocations in the recovery path are always single threaded */ int pblk_line_recov_alloc(struct pblk *pblk, struct pblk_line *line) { struct pblk_line_mgmt *l_mg = &pblk->l_mg; |