]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb96869f9795c907978ff1986510360fa0a267243
treed6c5f33f368c8108a3e3b91070c2b2c75aef8112
parent3408104e55827ea71e81dcebbd362095ebeb6158
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