Skip to content

Commit

Permalink
block: move ->timeout request member
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jens Axboe committed May 29, 2018
1 parent d1210d5 commit 0b7576d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/linux/blkdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ struct request {
unsigned short write_hint;
unsigned short ioprio;

unsigned int timeout;

void *special; /* opaque pointer available for LLD use */

unsigned int extra_len; /* length of alignment and padding */

enum mq_rq_state state;
refcount_t ref;

unsigned int timeout;

/* access through blk_rq_set_deadline, blk_rq_deadline */
unsigned long __deadline;

Expand Down

0 comments on commit 0b7576d

Please sign in to comment.