diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-10-16 13:02:40 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-10-18 19:22:28 +0300 |
commit | 78b7b13f07a3ca16c03aa8bf63f51d6780e8e9e1 (patch) | |
tree | f5c9f6dbd55b85a236b013e4596c21320a81ab8e /drivers/md/md.h | |
parent | 1bbe254e4336c0944dd4fb6f0b8c9665b81de50f (diff) | |
download | linux-78b7b13f07a3ca16c03aa8bf63f51d6780e8e9e1.tar.xz |
md: cleanup pers->prepare_suspend()
pers->prepare_suspend() is not used anymore and can be removed.
Reverts following three commit:
- commit 431e61257d63 ("md: export md_is_rdwr() and is_md_suspended()")
- commit 3e00777d5157 ("md: add a new api prepare_suspend() in
md_personality")
- commit 868bba54a3bc ("md/raid5: fix a deadlock in the case that reshape
is interrupted")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20231016100240.540474-1-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 55d01d431418..20f3f96cf4c1 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -565,23 +565,6 @@ enum recovery_flags { MD_RESYNCING_REMOTE, /* remote node is running resync thread */ }; -enum md_ro_state { - MD_RDWR, - MD_RDONLY, - MD_AUTO_READ, - MD_MAX_STATE -}; - -static inline bool md_is_rdwr(struct mddev *mddev) -{ - return (mddev->ro == MD_RDWR); -} - -static inline bool is_md_suspended(struct mddev *mddev) -{ - return percpu_ref_is_dying(&mddev->active_io); -} - static inline int __must_check mddev_lock(struct mddev *mddev) { return mutex_lock_interruptible(&mddev->reconfig_mutex); @@ -641,7 +624,6 @@ struct md_personality int (*start_reshape) (struct mddev *mddev); void (*finish_reshape) (struct mddev *mddev); void (*update_reshape_pos) (struct mddev *mddev); - void (*prepare_suspend) (struct mddev *mddev); /* quiesce suspends or resumes internal processing. * 1 - stop new actions and wait for action io to complete * 0 - return to normal behaviour |