]> git.ipfire.org Git - thirdparty/linux.git/commit
blk-mq: simplify the blk_mq_get_request calling convention
authorChristoph Hellwig <hch@lst.de>
Fri, 29 May 2020 13:53:09 +0000 (15:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 May 2020 16:23:24 +0000 (10:23 -0600)
commite6e7abffe386b614a194ec32457a00c304c980f4
tree5d5a7993cf6792d1605d3e58a621aba8d5416762
parent5d9c305b8ea3fbc95bedfde01f7dd91e68082098
blk-mq: simplify the blk_mq_get_request calling convention

The bio argument is entirely unused, and the request_queue can be passed
through the alloc_data, given that it needs to be filled out for the
low-level tag allocation anyway.  Also rename the function to
__blk_mq_alloc_request as the switch between get and alloc in the call
chains is rather confusing.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c