diff options
| author | Yu Kuai <[email protected]> | 2023-10-10 15:19:43 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-10-11 01:49:49 +0000 |
| commit | 714d20150ed85811193ae07a494d91f9927c590f (patch) | |
| tree | 0e14a78c85da36565bd3ade9eb4cd3e3952799c4 /drivers/md/dm-raid.c | |
| parent | md: replace is_md_suspended() with 'mddev->suspended' in md_check_recovery() (diff) | |
| download | kernel-714d20150ed85811193ae07a494d91f9927c590f.tar.gz kernel-714d20150ed85811193ae07a494d91f9927c590f.zip | |
md: add new helpers to suspend/resume array
Advantages for new apis:
- reconfig_mutex is not required;
- the weird logical that suspend array hold 'reconfig_mutex' for
mddev_check_recovery() to update superblock is not needed;
- the specail handling, 'pers->prepare_suspend', for raid456 is not
needed;
- It's safe to be called at any time once mddev is allocated, and it's
designed to be used from slow path where array configuration is changed;
- the new helpers is designed to be called before mddev_lock(), hence
it support to be interrupted by user as well.
Signed-off-by: Yu Kuai <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/md/dm-raid.c')
0 files changed, 0 insertions, 0 deletions
