Skip to content

Commit 982b48a

Browse files
author
Mike Snitzer
committed
dm: move hot dm_io members to same cacheline as dm_target_io
Just saves some cacheline bouncing for members accessed during cloned bio submission and completion. Signed-off-by: Mike Snitzer <[email protected]>
1 parent 6cbce28 commit 982b48a

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

drivers/md/dm-core.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -250,17 +250,19 @@ static inline bool dm_tio_is_normal(struct dm_target_io *tio)
250250
#define DM_IO_MAGIC 19577
251251
struct dm_io {
252252
unsigned short magic;
253-
blk_short_t flags;
254-
atomic_t io_count;
255-
struct mapped_device *md;
256-
struct bio *orig_bio;
257-
blk_status_t status;
253+
258254
spinlock_t lock;
259255
unsigned long start_time;
260256
void *data;
261257
struct hlist_node node;
262258
struct task_struct *map_task;
263259
struct dm_stats_aux stats_aux;
260+
261+
blk_short_t flags;
262+
blk_status_t status;
263+
atomic_t io_count;
264+
struct mapped_device *md;
265+
struct bio *orig_bio;
264266
/* last member of dm_target_io is 'struct bio' */
265267
struct dm_target_io tio;
266268
};

0 commit comments

Comments
 (0)