diff options
author | Mike Snitzer <snitzer@redhat.com> | 2019-02-20 21:37:44 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2019-03-05 20:48:50 +0100 |
commit | e689fbab3ddd92557134ef92c40a780a33299d05 (patch) | |
tree | 6db3ae786cee18cdc8ca7cd2a39bdf86bbcb75f2 /drivers/md/dm-rq.c | |
parent | dm: eliminate 'split_discard_bios' flag from DM target interface (diff) | |
download | linux-e689fbab3ddd92557134ef92c40a780a33299d05.tar.xz linux-e689fbab3ddd92557134ef92c40a780a33299d05.zip |
dm: remove unused _rq_tio_cache and _rq_cache
Also move dm_rq_target_io structure definition from dm-rq.h to dm-rq.c
Fixes: 6a23e05c2fe3c6 ("dm: remove legacy request-based IO path")
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-rq.c')
-rw-r--r-- | drivers/md/dm-rq.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index a20531e5f3b4..9428cd951e3b 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -12,6 +12,22 @@ #define DM_MSG_PREFIX "core-rq" +/* + * One of these is allocated per request. + */ +struct dm_rq_target_io { + struct mapped_device *md; + struct dm_target *ti; + struct request *orig, *clone; + struct kthread_work work; + blk_status_t error; + union map_info info; + struct dm_stats_aux stats_aux; + unsigned long duration_jiffies; + unsigned n_sectors; + unsigned completed; +}; + #define DM_MQ_NR_HW_QUEUES 1 #define DM_MQ_QUEUE_DEPTH 2048 static unsigned dm_mq_nr_hw_queues = DM_MQ_NR_HW_QUEUES; |