[PATCH V2 0/2] md/raid10: annotate lockless access and fix hungtask

Zizhi Wo posted 2 patches 1 month, 1 week ago
drivers/md/raid10.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
[PATCH V2 0/2] md/raid10: annotate lockless access and fix hungtask
Posted by Zizhi Wo 1 month, 1 week ago
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@huaweicloud.com/

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(-)

-- 
2.52.0
Re: [PATCH V2 0/2] md/raid10: annotate lockless access and fix hungtask
Posted by yu kuai 3 weeks, 2 days ago
在 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@huaweicloud.com/
>
> 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