diff options
author | Mike Snitzer <snitzer@redhat.com> | 2022-02-18 07:40:04 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2022-02-21 23:36:21 +0300 |
commit | 205649d84cdbfb64c4a86c497f0555221b67c160 (patch) | |
tree | 01eb4ea7de17b2c861f7d12838c460e13dc9ea44 /drivers/md | |
parent | 0ab30b4079e103b517bdfc4331507bf8d8dd8f7b (diff) | |
download | linux-205649d84cdbfb64c4a86c497f0555221b67c160.tar.xz |
dm: reorder members in mapped_device struct
Improves alignment and groups related members relative to cachelines.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-core.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/drivers/md/dm-core.h b/drivers/md/dm-core.h index 7ec2d75d9292..253b6bb5a0fc 100644 --- a/drivers/md/dm-core.h +++ b/drivers/md/dm-core.h @@ -64,13 +64,21 @@ struct mapped_device { struct gendisk *disk; struct dax_device *dax_dev; + wait_queue_head_t wait; unsigned long __percpu *pending_io; + /* forced geometry settings */ + struct hd_geometry geometry; + + /* + * Processing queue (flush) + */ + struct workqueue_struct *wq; + /* * A list of ios that arrived while we were suspended. */ struct work_struct work; - wait_queue_head_t wait; spinlock_t deferred_lock; struct bio_list deferred; @@ -85,36 +93,28 @@ struct mapped_device { struct list_head uevent_list; spinlock_t uevent_lock; /* Protect access to uevent_list */ + /* for blk-mq request-based DM support */ + bool init_tio_pdu:1; + struct blk_mq_tag_set *tag_set; + + struct dm_stats stats; + /* the number of internal suspends */ unsigned internal_suspend_count; + int swap_bios; + struct semaphore swap_bios_semaphore; + struct mutex swap_bios_lock; + /* * io objects are allocated from here. */ struct bio_set io_bs; struct bio_set bs; - /* - * Processing queue (flush) - */ - struct workqueue_struct *wq; - - /* forced geometry settings */ - struct hd_geometry geometry; - /* kobject and completion */ struct dm_kobject_holder kobj_holder; - int swap_bios; - struct semaphore swap_bios_semaphore; - struct mutex swap_bios_lock; - - struct dm_stats stats; - - /* for blk-mq request-based DM support */ - struct blk_mq_tag_set *tag_set; - bool init_tio_pdu:1; - struct srcu_struct io_barrier; #ifdef CONFIG_BLK_DEV_ZONED |