blk-mq: simplify blk_mq_make_request()
authorBart Van Assche <bvanassche@acm.org>
Mon, 1 Jul 2019 15:47:30 +0000 (08:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 3 Jul 2019 03:03:38 +0000 (21:03 -0600)
commit970d168de636ddac8221cbd4a11d7678943e7379
tree622620d4308df3a0b437f1ae4f84e40d73d68333
parentc05f42206f4de12b6807270fc669b45472f1bdb7
blk-mq: simplify blk_mq_make_request()

Move the blk_mq_bio_to_request() call in front of the if-statement.

Cc: Hannes Reinecke <hare@suse.com>
Cc: Omar Sandoval <osandov@fb.com>
Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq.c