diff options
author | Jens Axboe <axboe@fb.com> | 2015-01-07 12:44:04 -0500 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-01-07 12:44:04 -0500 |
commit | 17ded320706c6316376059cfbe9dccab32c62b42 (patch) | |
tree | 86301826f0fe57700c97828bf9fc2657c11c0c4e /block | |
parent | 35b489d32fcc37e8735f41aa794b24cf9d1e74f5 (diff) |
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 1a41d7aefbd5..cbd2a55d69b8 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -1615,7 +1615,6 @@ static int blk_mq_init_hctx(struct request_queue *q, | |||
1615 | hctx->queue = q; | 1615 | hctx->queue = q; |
1616 | hctx->queue_num = hctx_idx; | 1616 | hctx->queue_num = hctx_idx; |
1617 | hctx->flags = set->flags; | 1617 | hctx->flags = set->flags; |
1618 | hctx->cmd_size = set->cmd_size; | ||
1619 | 1618 | ||
1620 | blk_mq_init_cpu_notifier(&hctx->cpu_notifier, | 1619 | blk_mq_init_cpu_notifier(&hctx->cpu_notifier, |
1621 | blk_mq_hctx_notify, hctx); | 1620 | blk_mq_hctx_notify, hctx); |