]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: save queue mapping result into ctx directly
authorJianchao Wang <jianchao.w.wang@oracle.com>
Thu, 24 Jan 2019 10:25:32 +0000 (18:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Feb 2019 15:33:04 +0000 (08:33 -0700)
commit9702c71b222ec5ca7eb9305e2517e2b1a69aa13c
tree8b6c6835912bb3f3076d6694ba264072ae5921b6
parent48122108789c039749e2c6bcb4044cea5bc9ff1a
blk-mq: save queue mapping result into ctx directly

Currently, the queue mapping result is saved in a two-dimensional
array. In the hot path, to get a hctx, we need do following:

  q->queue_hw_ctx[q->tag_set->map[type].mq_map[cpu]]

This isn't very efficient. We could save the queue mapping result into
ctx directly with different hctx type, like,

  ctx->hctxs[type]

Signed-off-by: Jianchao Wang <jianchao.w.wang@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq-tag.c
block/blk-mq.c
block/blk-mq.h
block/blk.h