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

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

Message

Yu Kuai Dec. 5, 2023, 9:42 a.m. UTC
  From: Yu Kuai <yukuai3@huawei.com>

Changes in v5:
 - fix that unused variable 'sync_seq' is left in patch 3;

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 | 114 +++++++++++++++++++++---------------------------
 1 file changed, 50 insertions(+), 64 deletions(-)