diff options
| author | Yu Kuai <[email protected]> | 2023-10-10 15:19:44 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-10-11 01:49:49 +0000 |
| commit | f45461e24febab5c2ba8f331e9eb109bb59cbdc1 (patch) | |
| tree | ca9815a12ddefe8cfe516d42308f0c571ed05668 /drivers/md/dm-raid.c | |
| parent | md: add new helpers to suspend/resume array (diff) | |
| download | kernel-f45461e24febab5c2ba8f331e9eb109bb59cbdc1.tar.gz kernel-f45461e24febab5c2ba8f331e9eb109bb59cbdc1.zip | |
md: add new helpers to suspend/resume and lock/unlock array
The new helpers suspend the array first and then lock the array,
Prepare to refactor from:
mddev_lock/lock_nointr
mddev_suspend
...
mddev_resuem
mddev_lock
With:
mddev_suspend_and_lock/lock_nointr
...
mddev_unlock_and_resume
After all the use cases is refactored, mddev_suspend/resume() will be
removed.
And mddev_suspend_and_lock() will also replace mddev_lock() for the case
that the array will be reconfigured, in order to synchronize with io to
prevent problems in many corner cases.
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
