From: Jens Axboe Date: Wed, 5 Apr 2017 18:16:38 +0000 (-0600) Subject: block: move timeout field in struct request to pack better X-Git-Tag: v4.12-rc1~119^2~206 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd5198b2df913aec9b77c14529f9ff1b6d33e30;p=platform%2Fkernel%2Flinux-exynos.git block: move timeout field in struct request to pack better After commit 64c7f1d1572c, 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: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ce6f9a6..3cf241b 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -215,6 +215,8 @@ struct request { unsigned short ioprio; + unsigned int timeout; + void *special; /* opaque pointer available for LLD use */ int errors; @@ -223,7 +225,6 @@ struct request { unsigned long deadline; struct list_head timeout_list; - unsigned int timeout; /* * completion callback.