Re: [PATCH V2 0/2] md/raid10: annotate lockless access and fix hungtask
From: yu kuai
Date: Fri Sep 04 2026 - 21:25:59 EST
在 2026/8/17 11:33, Zizhi Wo 写道:
> Patch 1 annotates the lockless access to conf->array_freeze_pending with
> READ_ONCE()/WRITE_ONCE(). No functional change.
>
> Patch 2 fixes a hungtask in raid10.
>
> Changes in v2:
> - Add patch 1 to annotate the lockless reads of conf->array_freeze_pending
> with READ_ONCE(), paried with WRITE_ONCE() on the write side.
> - Use READ_ONCE() when reading conf->array_freeze_pending in patch 2.
>
> v1:
> https://lore.kernel.org/all/20260810135521.3470422-1-wozizhi@xxxxxxxxxxxxxxx/
>
> Zizhi Wo (2):
> md/raid10: annotate lockless access to array_freeze_pending
> md/raid10: fix missing wakeup in wait_barrier_nolock
>
> drivers/md/raid10.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
Applied to md-7.3
>
--
Thanks,
Kuai