]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: move blk_mq_get_driver_tag into blk-mq.c
authorMing Lei <ming.lei@redhat.com>
Tue, 30 Jun 2020 14:03:55 +0000 (22:03 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 30 Jun 2020 18:57:59 +0000 (12:57 -0600)
commitb7f3da9a75f024f47a696c16e1f72e2cf45993d9
tree31d45357234c3313e48a34b6a44c2874b1644df7
parent7d491b93e31d8182376d091893aa5ae6e82e7d11
blk-mq: move blk_mq_get_driver_tag into blk-mq.c

blk_mq_get_driver_tag() is only used by blk-mq.c and is supposed to
stay in blk-mq.c, so move it and preparing for cleanup code of
get/put driver tag.

Meantime hctx_may_queue() is moved to header file and it is fine
since it is defined as inline always.

No functional change.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cc: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c