summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.h
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-05-12 09:56:09 +0800
committerSong Liu <song@kernel.org>2023-06-13 15:13:21 -0700
commit3e00777d51572bdd75cef29c9c31106b52d7cc8f (patch)
tree24443a82e0f68ef994b8bea2532b4720c22a2fb9 /drivers/md/md.h
parent431e61257d631157e1d374f1368febf37aa59f7c (diff)
downloadlinux-3e00777d51572bdd75cef29c9c31106b52d7cc8f.tar.gz
linux-3e00777d51572bdd75cef29c9c31106b52d7cc8f.tar.bz2
linux-3e00777d51572bdd75cef29c9c31106b52d7cc8f.zip
md: add a new api prepare_suspend() in md_personality
There are no functional changes, the new api will be used later to do special handling for raid456 in md_suspend(). Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230512015610.821290-5-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r--drivers/md/md.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h
index da173d6bf726..1eec65cf783c 100644
--- a/drivers/md/md.h
+++ b/drivers/md/md.h
@@ -631,6 +631,7 @@ 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