]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: save default hctx into ctx->hctxs for not-supported type
authorJianchao Wang <jianchao.w.wang@oracle.com>
Thu, 24 Jan 2019 10:25:33 +0000 (18:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Feb 2019 15:33:43 +0000 (08:33 -0700)
commit7c523b5100951378879e0b01afab6631b11382bd
tree0ac5fc4f031d07a8368dff0b773f7d10f83fa80a
parent9702c71b222ec5ca7eb9305e2517e2b1a69aa13c
blk-mq: save default hctx into ctx->hctxs for not-supported type

Currently, we check whether the hctx type is supported every time
in hot path. Actually, this is not necessary, we could save the
default hctx into ctx->hctxs if the type is not supported when
map swqueues and use it directly with ctx->hctxs[type].

We also needn't check whether the poll is enabled or not, because
the caller would clear the REQ_HIPRI in that case.

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