]> 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)
commit0e37b65b13bc0217a1d2756044390c4d9dc1e350
tree31d45357234c3313e48a34b6a44c2874b1644df7
parent439768f235f39824ca9b433681a45802ea1d29a1
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