]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
blk-mq: introduce blk_mq_hw_queue_first_cpu() to figure out first cpu
authorMing Lei <ming.lei@redhat.com>
Tue, 15 May 2018 13:03:17 +0000 (10:03 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Tue, 12 Jun 2018 06:28:55 +0000 (02:28 -0400)
commit6204c099aeb1d67951f4b5e31b29a55696738568
tree3af0b9e8b03966f5a6cfb084487fe6b7cbb9da9b
parent88f4a9623caf6da039748ba8364202c7ea3cb3bb
blk-mq: introduce blk_mq_hw_queue_first_cpu() to figure out first cpu

BugLink: http://bugs.launchpad.net/bugs/1759723
This patch introduces helper of blk_mq_hw_queue_first_cpu() for
figuring out the hctx's first cpu, and code duplication can be
avoided.

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 f82ddf1923b90f89665d08cf219287c8f9deb739)
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