]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-mq: avoid to write intermediate result to hctx->next_cpu
authorMing Lei <ming.lei@redhat.com>
Tue, 15 May 2018 13:03:16 +0000 (10:03 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit88f4a9623caf6da039748ba8364202c7ea3cb3bb
treede17e1dd7fa72d57e418893ccbc11110756ca4e5
parent6d68f59ed86e4e40f9cf63ce261629f68e4e8da6
blk-mq: avoid to write intermediate result to hctx->next_cpu

BugLink: http://bugs.launchpad.net/bugs/1759723
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>
(cherry picked from commit 476f8c98a9bccccbb97866974ffc80879adf2bbb)
Signed-off-by: Jose Ricardo Ziviani <joserz@linux.ibm.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
block/blk-mq.c