summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-rq.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-01-22 18:32:46 +0100
committerJens Axboe <axboe@fb.com>2017-01-27 23:08:35 +0100
commiteb8db831be80692bf4bda3dfc55001daf64ec299 (patch)
tree632bf3e0d7d7d793e59f61d6f3f9ab38dadc5523 /drivers/md/dm-rq.h
parentdm: remove incomplete BLOCK_PC support (diff)
downloadlinux-eb8db831be80692bf4bda3dfc55001daf64ec299.tar.xz
linux-eb8db831be80692bf4bda3dfc55001daf64ec299.zip
dm: always defer request allocation to the owner of the request_queue
DM already calls blk_mq_alloc_request on the request_queue of the underlying device if it is a blk-mq device. But now that we allow drivers to allocate additional data and initialize it ahead of time we need to do the same for all drivers. Doing so and using the new cmd_size infrastructure in the block layer greatly simplifies the dm-rq and mpath code, and should also make arbitrary combinations of SQ and MQ devices with SQ or MQ device mapper tables easily possible as a further step. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/dm-rq.h')
-rw-r--r--drivers/md/dm-rq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-rq.h b/drivers/md/dm-rq.h
index 4da06cae7bad..f0020d21b95f 100644
--- a/drivers/md/dm-rq.h
+++ b/drivers/md/dm-rq.h
@@ -48,7 +48,7 @@ struct dm_rq_clone_bio_info {
bool dm_use_blk_mq_default(void);
bool dm_use_blk_mq(struct mapped_device *md);
-int dm_old_init_request_queue(struct mapped_device *md);
+int dm_old_init_request_queue(struct mapped_device *md, struct dm_table *t);
int dm_mq_init_request_queue(struct mapped_device *md, struct dm_table *t);
void dm_mq_cleanup_mapped_device(struct mapped_device *md);