Reorder request_queue to remove 16 bytes of alignment padding in 64 bit
builds.
On my config this shrinks the size of this structure from 1608 to 1592
bytes and therefore needs one fewer cachelines.
Also trivially move the open bracket { to be on the same line as the
structure name to make it easier to grep.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
unsigned char discard_zeroes_data;
};
unsigned char discard_zeroes_data;
};
/*
* Together with queue_head for cacheline sharing
*/
/*
* Together with queue_head for cacheline sharing
*/
- * queue needs bounce pages for pages above this limit
+ * various queue flags, see QUEUE_* below
+ unsigned long queue_flags;
- * various queue flags, see QUEUE_* below
+ * queue needs bounce pages for pages above this limit
- unsigned long queue_flags;
/*
* protects queue structures from reentrancy. ->__queue_lock should
/*
* protects queue structures from reentrancy. ->__queue_lock should
unsigned int nr_congestion_off;
unsigned int nr_batching;
unsigned int nr_congestion_off;
unsigned int nr_batching;
- void *dma_drain_buffer;
unsigned int dma_drain_size;
unsigned int dma_drain_size;
+ void *dma_drain_buffer;
unsigned int dma_pad_mask;
unsigned int dma_alignment;
unsigned int dma_pad_mask;
unsigned int dma_alignment;