]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: introduce blk_mq_hw_queue_first_cpu() to figure out first cpu
authorMing Lei <ming.lei@redhat.com>
Sun, 8 Apr 2018 09:48:10 +0000 (17:48 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Apr 2018 14:38:46 +0000 (08:38 -0600)
commita972ce7028dfd3d6f01be738892e7ea084df6bd9
tree24becd9e5556a348cf23859eea2dbe5acb020e59
parent6c79dd5da0318f6a3a3116c8140fd9666bebe9c1
blk-mq: introduce blk_mq_hw_queue_first_cpu() to figure out first cpu

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>
block/blk-mq.c