Re: [PATCH v3 4/5] md/raid10: fix improper BUG_ON() in raise_barrier()

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




On 2022-09-16 05:34, Yu Kuai wrote:
> From: Yu Kuai <yukuai3@xxxxxxxxxx>
>
> 'conf->barrier' is protected by 'conf->resync_lock', reading
> 'conf->barrier' without holding the lock is wrong.
>
> Signed-off-by: Yu Kuai <yukuai3@xxxxxxxxxx>

Reviewed-by: Logan Gunthorpe <logang@xxxxxxxxxxxx>