Re: [PATCH v3 5/5] md/raid10: convert resync_lock to use seqlock

From: Logan Gunthorpe
Date: Fri Sep 16 2022 - 14:38:14 EST




On 2022-09-16 05:34, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@xxxxxxxxxx>
>
> Currently, wait_barrier() will hold 'resync_lock' to read 'conf->barrier',
> and io can't be dispatched until 'barrier' is dropped.
>
> Since holding the 'barrier' is not common, convert 'resync_lock' to use
> seqlock so that holding lock can be avoided in fast path.
>
> Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx>

Reviewed-and-Tested-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>

So far, I've run this series 3 times through the mdadm test suite and
haven't detected any issues.

Thanks,

Logan