diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-08-25 11:16:16 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-09-22 10:28:24 -0700 |
commit | ac619781967bd5663c29606246b50dbebd8b3473 (patch) | |
tree | 56f42f6b4ff4741d8c213ac744723c0b2aa6adfc /drivers/md/md.h | |
parent | d78bfa1346ab1fe04d20aa45a0678d1fc866f37c (diff) |
md: use separate work_struct for md_start_sync()
It's a little weird to borrow 'del_work' for md_start_sync(), declare
a new work_struct 'sync_work' for md_start_sync().
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230825031622.1530464-2-yukuai1@huaweicloud.com
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 7c9c13abd7ca..d8c8b8c532bb 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -453,7 +453,10 @@ struct mddev { struct kernfs_node *sysfs_degraded; /*handle for 'degraded' */ struct kernfs_node *sysfs_level; /*handle for 'level' */ - struct work_struct del_work; /* used for delayed sysfs removal */ + /* used for delayed sysfs removal */ + struct work_struct del_work; + /* used for register new sync thread */ + struct work_struct sync_work; /* "lock" protects: * flush_bio transition from NULL to !NULL |