summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-01 10:59:47 +0200
committerJens Axboe <axboe@kernel.dk>2020-07-01 15:27:24 +0200
commit5a6c35f9af416114588298aa7a90b15bbed15a41 (patch)
treed28331c5a7ff99ba8d14f275a9aff9702268a984 /drivers/md/dm.c
parentblock: shortcut __submit_bio_noacct for blk-mq drivers (diff)
downloadlinux-5a6c35f9af416114588298aa7a90b15bbed15a41.tar.xz
linux-5a6c35f9af416114588298aa7a90b15bbed15a41.zip
block: remove direct_make_request
Now that submit_bio_noacct has a decent blk-mq fast path there is no more need for this bypass. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index b32b539dbace..2cb33896198c 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1302,10 +1302,7 @@ static blk_qc_t __map_bio(struct dm_target_io *tio)
/* the bio has been remapped so dispatch it */
trace_block_bio_remap(clone->bi_disk->queue, clone,
bio_dev(io->orig_bio), sector);
- if (md->type == DM_TYPE_NVME_BIO_BASED)
- ret = direct_make_request(clone);
- else
- ret = submit_bio_noacct(clone);
+ ret = submit_bio_noacct(clone);
break;
case DM_MAPIO_KILL:
free_tio(tio);