raid5: initialize the stripe_head embeeded bios as needed
authorChristoph Hellwig <hch@lst.de>
Mon, 28 Feb 2022 11:25:03 +0000 (13:25 +0200)
committerSong Liu <song@kernel.org>
Wed, 9 Mar 2022 06:55:13 +0000 (22:55 -0800)
commit03a6b195e8e846f7373bcbeb3ea2a756dfb9ae61
treeb7feb3420fcd034300541b741b7b4d867f081521
parent89f94b64408b576c88e407d87061bb7b9bc2111d
raid5: initialize the stripe_head embeeded bios as needed

Use bio_init to initialize the bios when needed to the full state
instead of a partial initialization plus later setting of dev and op
and bio_reset.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
drivers/md/raid5.c