History

block: move internal_tag to same cache line as tag

Since we removed cmd_type, we now have a hole in the struct. Move the internal_tag member to the same cacheline as tag, since we use them at the same time. This doesn't fix the hole, just moves it elsewhere.

Jens Axboe committed 9 years ago

Commit d486f1f1 parent aebf5261 file · +3 −2Browse files

Showing the changes to include/linux/blkdev.h (1 of 1 file). Show all

Unified · Split

include/linux/blkdev.h+3−2
@@ -138,6 +138,9 @@ struct request { · 137 unmodified lines
138138 int cpu;
139139 unsigned int cmd_flags; /* op and common flags */
140140 req_flags_t rq_flags;
141+
142+ int internal_tag;
143+
141144 unsigned long atomic_flags;
142145
143146 /* the following two fields are internal, NEVER access directly */
@@ -209,8 +212,6 @@ struct request { · 65 unmodified lines
209212
210213 unsigned short ioprio;
211214
212− int internal_tag;
213−
214215 void *special; /* opaque pointer available for LLD use */
215216
216217 int errors;