diff options
author | Ming Lei <ming.lei@redhat.com> | 2018-04-08 11:48:10 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-04-10 16:38:46 +0200 |
commit | f82ddf1923b90f89665d08cf219287c8f9deb739 (patch) | |
tree | 24becd9e5556a348cf23859eea2dbe5acb020e59 /block/blk-mq-debugfs.c | |
parent | blk-mq: avoid to write intermediate result to hctx->next_cpu (diff) | |
download | linux-f82ddf1923b90f89665d08cf219287c8f9deb739.tar.xz linux-f82ddf1923b90f89665d08cf219287c8f9deb739.zip |
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>
Diffstat (limited to 'block/blk-mq-debugfs.c')
0 files changed, 0 insertions, 0 deletions