blk-mq: move more request initialization to blk_mq_rq_ctx_init
authorChristoph Hellwig <hch@lst.de>
Fri, 29 May 2020 13:53:10 +0000 (15:53 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 May 2020 16:23:24 +0000 (10:23 -0600)
commit7ea4d8a4d683298abd346abf89567774de2fa34a
tree3bc6c241705275f640ced5d177ad7c8839f64753
parente6e7abffe386b614a194ec32457a00c304c980f4
blk-mq: move more request initialization to blk_mq_rq_ctx_init

Don't split request initialization between __blk_mq_alloc_request and
blk_mq_rq_ctx_init.  Also remove the op argument as it can be derived
from the blk_mq_alloc_data structure.

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