md/raid5: Refactor for loop in raid5_make_request() into while loop
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 16 Jun 2022 19:19:39 +0000 (13:19 -0600)
committerSong Liu <song@kernel.org>
Sun, 3 Jul 2022 14:55:41 +0000 (07:55 -0700)
commitcb775de29f28b36219bde44b6fdef39642e4633d
treea4f6dcdfcca3917e882d912006582e488b639569
parent0647deafbf6362b2cbf5fa7fb0cbc2fdcb85a915
md/raid5: Refactor for loop in raid5_make_request() into while loop

The for loop with retry label can be more cleanly expressed as a while
loop by moving the logical_sector increment into the success path.

No functional changes intended.

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