]> git.ipfire.org Git - people/arne_f/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)
commit476f8c98a9bccccbb97866974ffc80879adf2bbb
tree2c8163291812b7d1b54790b5ccb57f4f91cb44bf
parentbffa9909a6b48d8ca3398dec601bc9162a4020c4
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