# Re: \[PATCH -next v2 0/6\] md: fix that MD\_RECOVERY\_RUNNING can be cleared while sync\_thread is still running

- From: Song Liu \<song@kernel.org\>
- Date: 2023-06-09 04:45:15 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2023/06/2226987
- Thread: https://ratatoskr.run/linux-raid/2023/05/2213215/t.md

```text
On Wed, Jun 7, 2023 at 7:41 PM Yu Kuai [ref] wrote:
>
> Hi,
>
> 在 2023/05/29 21:20, Yu Kuai 写道:
> > From: Yu Kuai <redacted>
> >
> > Changes in v2:
> >   - rebase for the latest md-next
> >
> > Patch 1 revert the commit because it will cause MD_RECOVERY_RUNNING to be
> > cleared while sync_thread is still running. The deadlock this patch tries
> > to fix will be fixed by patch 2-5.
> >
> > Patch 6 enhance checking to prevent MD_RECOVERY_RUNNING to be cleared
> > while sync_thread is still running.
>
> Any suggestions on this patchset? I already sent regression test
> for the deadlock problem for both raid10 and raid456.

Sorry for the delay. I will look into this soon.

Thanks,
Song
```
