blk-mq: factor out a blk_rq_init_flush helper
authorChristoph Hellwig <hch@lst.de>
Fri, 19 May 2023 04:40:44 +0000 (06:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Sat, 20 May 2023 01:52:29 +0000 (19:52 -0600)
commit0b573692f19501dfe2aeaf37b272ec07f60c70b9
tree1d9d8414e4f5decf335d3b3f2f980ba2129e2dc8
parentbda2795a630b2f6c417675bfbf4d90ef7503dfc7
blk-mq: factor out a blk_rq_init_flush helper

Factor out a helper from blk_insert_flush that initializes the flush
machine related fields in struct request, and don't bother with the
full memset as there's just a few fields to initialize, and all but
one already have explicit initializers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230519044050.107790-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-flush.c