Commit 1dd5198b authored by Jens Axboe's avatar Jens Axboe

block: move timeout field in struct request to pack better

After commit 64c7f1d1, we went from 1 to 2 holes in my
test setup. If we move the timeout field a bit, we remove
both of those holes and shrink struct request by 8 bytes.
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 64c7f1d1
...@@ -215,6 +215,8 @@ struct request { ...@@ -215,6 +215,8 @@ struct request {
unsigned short ioprio; unsigned short ioprio;
unsigned int timeout;
void *special; /* opaque pointer available for LLD use */ void *special; /* opaque pointer available for LLD use */
int errors; int errors;
...@@ -223,7 +225,6 @@ struct request { ...@@ -223,7 +225,6 @@ struct request {
unsigned long deadline; unsigned long deadline;
struct list_head timeout_list; struct list_head timeout_list;
unsigned int timeout;
/* /*
* completion callback. * completion callback.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment