diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-10-10 18:19:55 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-10-11 04:49:51 +0300 |
commit | b42cd7b3a20db692a8d24c2c756ad5008729976b (patch) | |
tree | 2a0e31891ca1c0e7aebf36093039ee565f0f8856 /kernel/utsname_sysctl.c | |
parent | 1978c742f3e7ef359b83cb712f8559fcd32032d0 (diff) | |
download | linux-b42cd7b3a20db692a8d24c2c756ad5008729976b.tar.xz |
md/raid5: replace suspend with quiesce() callback
raid5 is the only personality to suspend array in check_reshape() and
start_reshape() callback, suspend and quiesce() callback can both wait
for all normal io to be done, and prevent new io to be dispatched, the
difference is that suspend is implemented in common layer, and quiesce()
callback is implemented in raid5.
In order to cleanup all the usage of mddev_suspend(), the new apis
__mddev_suspend() need to be called before 'reconfig_mutex' is held,
and it's not good to affect all the personalities in common layer just
for raid5. Hence replace suspend with quiesce() callaback, prepare to
reomove all the users of mddev_suspend().
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231010151958.145896-17-yukuai1@huaweicloud.com
Diffstat (limited to 'kernel/utsname_sysctl.c')
0 files changed, 0 insertions, 0 deletions