OSDN Git Service

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)
commit570e9b73b0af2e5381ca5343759779b8c1ed20e3
tree31d45357234c3313e48a34b6a44c2874b1644df7
parent6e6fcbc27e7788af54139c53537395d95560f2ef
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