]> www.infradead.org Git - users/hch/block.git/commit
blk-mq: factor out a blk_rq_init_flush helper
authorChristoph Hellwig <hch@lst.de>
Sun, 16 Apr 2023 07:59:41 +0000 (09:59 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 18 May 2023 05:32:26 +0000 (07:32 +0200)
commite2ccb3b46edd95d49e7d05ea0835068379ef611c
treea9379630916625e2d7e73ecd5e8bc89d384d618e
parentcc603325b76d3d3811f1003405bc5d2109d40887
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>
block/blk-flush.c