History

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.

Jens Axboe committed 8 years ago

Commit 0b7576d1 parent d1210d51 file · +2 −2Browse files

Unified · Split

include/linux/blkdev.h+2−2
@@ -237,8 +237,6 @@ struct request { · 236 unmodified lines
237237 unsigned short write_hint;
238238 unsigned short ioprio;
239239
240− unsigned int timeout;
241−
242240 void *special; /* opaque pointer available for LLD use */
243241
244242 unsigned int extra_len; /* length of alignment and padding */
@@ -246,6 +244,8 @@ struct request { · 1 unmodified line
246244 enum mq_rq_state state;
247245 refcount_t ref;
248246
247+ unsigned int timeout;
248+
249249 /* access through blk_rq_set_deadline, blk_rq_deadline */
250250 unsigned long __deadline;
251251

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t