[PATCH v3] blk-mq: check on cpu id when there is only one ctx mapping
Christoph Hellwig
hch at infradead.org
Tue Jun 13 23:19:02 PDT 2023
This looks fine to me:
Reviewed-by: Christoph Hellwig <hch at lst.de>
> - if (rq->mq_hctx->nr_ctx == 1 ||
> + if ((rq->mq_hctx->nr_ctx == 1 &&
> + rq->mq_ctx->cpu == raw_smp_processor_id()) ||
> rq->cmd_flags & REQ_POLLED)
But please fix the incorrct indentation in the existing code here
please while you're at it (maybe Jens can just fold it in):
if ((rq->mq_hctx->nr_ctx == 1 &&
rq->mq_ctx->cpu == raw_smp_processor_id()) ||
(rq->cmd_flags & REQ_POLLED))
More information about the Linux-mediatek
mailing list