[v2,0/6] md: bugfix and cleanup for sync_thread

Message ID 20231124075953.1932764-1-yukuai1@huaweicloud.com
Headers
Series md: bugfix and cleanup for sync_thread |

Message

Yu Kuai Nov. 24, 2023, 7:59 a.m. UTC
  From: Yu Kuai <yukuai3@huawei.com>

Changes in v2:
 - add patch 2;
 - split some patches from v1 that will be sent separately;
 - rework some commit message;
 - rework patch 5;

Yu Kuai (6):
  md: fix missing flush of sync_work
  md: remove redundant check of 'mddev->sync_thread'
  md: remove redundant md_wakeup_thread()
  md: don't leave 'MD_RECOVERY_FROZEN' in error path of
    md_set_readonly()
  md: fix stopping sync thread
  dm-raid: delay flushing event_work() after reconfig_mutex is released

 drivers/md/dm-raid.c |   3 +
 drivers/md/md.c      | 149 ++++++++++++++++++++-----------------------
 drivers/md/raid5.c   |   6 +-
 3 files changed, 75 insertions(+), 83 deletions(-)
  

Comments

Xiao Ni Nov. 25, 2023, 10:26 a.m. UTC | #1
On Fri, Nov 24, 2023 at 4:00 PM Yu Kuai <yukuai1@huaweicloud.com> wrote:
>
> From: Yu Kuai <yukuai3@huawei.com>
>
> Changes in v2:
>  - add patch 2;
>  - split some patches from v1 that will be sent separately;
>  - rework some commit message;
>  - rework patch 5;
>
> Yu Kuai (6):
>   md: fix missing flush of sync_work
>   md: remove redundant check of 'mddev->sync_thread'
>   md: remove redundant md_wakeup_thread()
>   md: don't leave 'MD_RECOVERY_FROZEN' in error path of
>     md_set_readonly()
>   md: fix stopping sync thread
>   dm-raid: delay flushing event_work() after reconfig_mutex is released
>
>  drivers/md/dm-raid.c |   3 +
>  drivers/md/md.c      | 149 ++++++++++++++++++++-----------------------
>  drivers/md/raid5.c   |   6 +-
>  3 files changed, 75 insertions(+), 83 deletions(-)
>
> --
> 2.39.2
>
For the series
Acked-by: Xiao Ni <xni@redhat.com>