]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: avoid to write intermediate result to hctx->next_cpu
authorMing Lei <ming.lei@redhat.com>
Sun, 8 Apr 2018 09:48:09 +0000 (17:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Apr 2018 14:38:46 +0000 (08:38 -0600)
commit16f12f9fabddba0f3c4f5bcdd702baf401e3c123
tree2c8163291812b7d1b54790b5ccb57f4f91cb44bf
parent6529914b86da531392e868dcc858e6d6169ccde0
blk-mq: avoid to write intermediate result to hctx->next_cpu

This patch figures out the final selected CPU, then writes
it to hctx->next_cpu once, then we can avoid to intermediate
next cpu observed from other dispatch paths.

Cc: Stefan Haberland <sth@linux.vnet.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c