lightnvm: pblk: put bio on bio completion
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:16 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit55e836d401601e7903b36db015ce899dc11085ab
tree89608679816f984002cfd0944af27cd3eecc9b2a
parent2a19b10d423c6dc47449e905ed3a8eabb49c48a0
lightnvm: pblk: put bio on bio completion

Simplify put bio by doing it on bio end_io instead of manually putting
it on the completion path.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-read.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk-write.c