]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee6f10440cebbcf09b29c3f7daf2c19b803f8763
tree3bc6c241705275f640ced5d177ad7c8839f64753
parentfcb604684e28ca7fc97372c0bdc8afbe8aa8e991
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