[v4,md-fixes,0/3] md: fix stopping sync thread

Message ID 20231204135732.3647886-1-yukuai1@huaweicloud.com
Headers
Series md: fix stopping sync thread |

Message

Yu Kuai Dec. 4, 2023, 1:57 p.m. UTC
  From: Yu Kuai <yukuai3@huawei.com>

Changes in v4:
 - add fix tag in patch 2;
 - rework patch 3, as suggested by Song Liu;

Changes in v3:
- split bugfix patches for md-fixes

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 (3):
  md: fix missing flush of sync_work
  md: don't leave 'MD_RECOVERY_FROZEN' in error path of
    md_set_readonly()
  md: fix stopping sync thread

 drivers/md/md.c | 112 +++++++++++++++++++++---------------------------
 1 file changed, 50 insertions(+), 62 deletions(-)