]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: refactor put line fn on read completion
authorMatias Bjørling <mb@lightnvm.io>
Tue, 9 Oct 2018 11:11:40 +0000 (13:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 9 Oct 2018 14:25:06 +0000 (08:25 -0600)
commit7b77acee3b8bca02823c94d7a7fe5ad194ecabfa
treec0326f1f3909822f47654181c33c67c215251963
parentcfbc8d9a0947ad69e60f572966fb178782b939e9
lightnvm: pblk: refactor put line fn on read completion

The read completion path uses the put_line variable to decide whether
the reference on a line should be released. The function name used for
that is pblk_read_put_rqd_kref, which could lead one to believe that it
is the rqd that is releasing the reference, while it is the line
reference that is put.

Rename and also split the function in two to account for either rqd or
single ppa callers and move it to core, such that it later can be used
in the write path as well.

Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Reviewed-by: Javier González <javier@cnexlabs.com>
Reviewed-by: Heiner Litz <hlitz@ucsc.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-read.c
drivers/lightnvm/pblk.h