mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
blk-mq: get rid of ->cmd_size in the hardware queue
We store it in the tag set, we don't need it in the hardware queue. While removing cmd_size, place ->queue_num further down to avoid a hole on 64-bit archs. It's not used in any fast paths, so we can safely move it. Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
35b489d32f
commit
17ded32070
2 changed files with 1 additions and 3 deletions
|
@ -34,7 +34,6 @@ struct blk_mq_hw_ctx {
|
|||
unsigned long flags; /* BLK_MQ_F_* flags */
|
||||
|
||||
struct request_queue *queue;
|
||||
unsigned int queue_num;
|
||||
struct blk_flush_queue *fq;
|
||||
|
||||
void *driver_data;
|
||||
|
@ -54,7 +53,7 @@ struct blk_mq_hw_ctx {
|
|||
unsigned long dispatched[BLK_MQ_MAX_DISPATCH_ORDER];
|
||||
|
||||
unsigned int numa_node;
|
||||
unsigned int cmd_size; /* per-request extra data */
|
||||
unsigned int queue_num;
|
||||
|
||||
atomic_t nr_active;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue