]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: Check all disks in a stripe_head for reshape progress
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 16 Jun 2022 19:19:42 +0000 (13:19 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Aug 2022 23:14:42 +0000 (17:14 -0600)
commitea9ffb13262e8a0c65e77262c5d49866352c8d78
treecb4c96276381957cbef49a63a81dd1689e883932
parentf483d67ce705c2356e81d6824942a5a3cbadb9fd
md/raid5: Check all disks in a stripe_head for reshape progress

When testing if a previous stripe has had reshape expand past it, use
the earliest or latest logical sector in all the disks for that stripe
head. This will allow adding multiple disks at a time in a subesquent
patch.

To do this cleaner, refactor the check into a helper function called
stripe_ahead_of_reshape().

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