mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
block: better packing for struct request
Keep the 32-bit CPU and cmd_type flags together to avoid holes on 64-bit architectures. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
60a40096a3
commit
ca93e45347
1 changed files with 3 additions and 4 deletions
|
@ -96,11 +96,10 @@ struct request {
|
||||||
struct request_queue *q;
|
struct request_queue *q;
|
||||||
struct blk_mq_ctx *mq_ctx;
|
struct blk_mq_ctx *mq_ctx;
|
||||||
|
|
||||||
u64 cmd_flags;
|
|
||||||
unsigned cmd_type;
|
|
||||||
unsigned long atomic_flags;
|
|
||||||
|
|
||||||
int cpu;
|
int cpu;
|
||||||
|
unsigned cmd_type;
|
||||||
|
u64 cmd_flags;
|
||||||
|
unsigned long atomic_flags;
|
||||||
|
|
||||||
/* the following two fields are internal, NEVER access directly */
|
/* the following two fields are internal, NEVER access directly */
|
||||||
unsigned int __data_len; /* total data len */
|
unsigned int __data_len; /* total data len */
|
||||||
|
|
Loading…
Reference in a new issue