diff options
author | Javier González <javier@javigon.com> | 2018-06-01 17:41:11 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-06-01 18:02:53 +0300 |
commit | 87cc40bbe3371d0af1a2f31bf90665b55d3d1c0d (patch) | |
tree | ee39efbe702adc3f1f94d0249914f83b40abf49c /drivers/lightnvm/pblk-recovery.c | |
parent | 4a828884c694dfaf002688b91a102e35d4961a1b (diff) | |
download | linux-87cc40bbe3371d0af1a2f31bf90665b55d3d1c0d.tar.xz |
lightnvm: pblk: remove unnecessary bio_get/put
In the read path, pblk gets a reference to the incoming bio and puts it
after ending the bio. Though this behavior is correct, it is unnecessary
since pblk is the one putting the bio, therefore, it cannot disappear
underneath it.
Removing this reference, allows to clean up rqd->bio and avoids pointer
bouncing for the different read paths. Now, the incoming bio always
resides in the read context and pblk's internal bios (if any) reside in
rqd->bio.
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-recovery.c')
0 files changed, 0 insertions, 0 deletions