summaryrefslogtreecommitdiffstats
path: root/drivers/lightnvm/pblk-core.c
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2017-10-13 14:46:21 +0200
committerJens Axboe <axboe@kernel.dk>2017-10-13 08:34:57 -0600
commit26532ee52b77185b095d29b54c83386f737a74ba (patch)
treef8e32cf95de0f6b362180584d6d0d8d7ea591f20 /drivers/lightnvm/pblk-core.c
parent67bf26a3220e3bd403a62a9289aa1d065d3db82c (diff)
downloadblackbird-op-linux-26532ee52b77185b095d29b54c83386f737a74ba.tar.gz
blackbird-op-linux-26532ee52b77185b095d29b54c83386f737a74ba.zip
lightnvm: pblk: use rqd->end_io for completion
For consistency with the rest of pblk, use rqd->end_io to point to the function taking care of ending the request 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>
Diffstat (limited to 'drivers/lightnvm/pblk-core.c')
-rw-r--r--drivers/lightnvm/pblk-core.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c
index 0de3875211b1..08d166ac4f3c 100644
--- a/drivers/lightnvm/pblk-core.c
+++ b/drivers/lightnvm/pblk-core.c
@@ -261,13 +261,6 @@ void pblk_write_should_kick(struct pblk *pblk)
pblk_write_kick(pblk);
}
-void pblk_end_bio_sync(struct bio *bio)
-{
- struct completion *waiting = bio->bi_private;
-
- complete(waiting);
-}
-
void pblk_end_io_sync(struct nvm_rq *rqd)
{
struct completion *waiting = rqd->private;
OpenPOWER on IntegriCloud