aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-05-29 10:47:57 -0400
committerJens Axboe <axboe@kernel.dk>2018-05-29 10:59:21 -0400
commit0b7576d8eb4c5634276ada359bfdb72e69eebc25 (patch)
tree5fd3a988377fd4a7b246bb6b6840b654fc82ccab /include/linux/blkdev.h
parentd1210d5afb9e16527f0b18448d82c675c03aa7c0 (diff)
block: move ->timeout request member
After the recent timeout handling changes, we have two holes in the struct. Move the timeout near the deadline, killing both, and moving related members closer together. On my config on x86-64, this shrinks struct request from 312 to 304 bytes. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 9f06b29adaa4..4efd9af62e25 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -237,8 +237,6 @@ struct request {
237 unsigned short write_hint; 237 unsigned short write_hint;
238 unsigned short ioprio; 238 unsigned short ioprio;
239 239
240 unsigned int timeout;
241
242 void *special; /* opaque pointer available for LLD use */ 240 void *special; /* opaque pointer available for LLD use */
243 241
244 unsigned int extra_len; /* length of alignment and padding */ 242 unsigned int extra_len; /* length of alignment and padding */
@@ -246,6 +244,8 @@ struct request {
246 enum mq_rq_state state; 244 enum mq_rq_state state;
247 refcount_t ref; 245 refcount_t ref;
248 246
247 unsigned int timeout;
248
249 /* access through blk_rq_set_deadline, blk_rq_deadline */ 249 /* access through blk_rq_set_deadline, blk_rq_deadline */
250 unsigned long __deadline; 250 unsigned long __deadline;
251 251