md/raid5: Refactor raid5_get_active_stripe()
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 11 Aug 2022 17:14:14 +0000 (11:14 -0600)
committerSong Liu <song@kernel.org>
Thu, 22 Sep 2022 07:05:03 +0000 (00:05 -0700)
commitb6d56144fe902c2b7b9a3573aaf6aa7dc5366211
treed6c5f33f368c8108a3e3b91070c2b2c75aef8112
parent1727fd5015d8f93474148f94e34cda5aa6ad4a43
md/raid5: Refactor raid5_get_active_stripe()

Refactor raid5_get_active_stripe() without the gotos with an
explicit infinite loop and some additional nesting.

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