diff options
author | Guoqing Jiang <guoqing.jiang@cloud.ionos.com> | 2019-12-23 10:48:53 +0100 |
---|---|---|
committer | Song Liu <songliubraving@fb.com> | 2020-01-13 20:44:09 +0100 |
commit | 404659cf1e2570dad3cd117fa3bd71f06ecfd142 (patch) | |
tree | f6ebfebe6852702b15a1e00a4d70eec5aa37ec41 /drivers/md/md.h | |
parent | raid5: remove worker_cnt_per_group argument from alloc_thread_groups (diff) | |
download | linux-404659cf1e2570dad3cd117fa3bd71f06ecfd142.tar.xz linux-404659cf1e2570dad3cd117fa3bd71f06ecfd142.zip |
md: rename wb stuffs
Previously, wb_info_pool and wb_list stuffs are introduced
to address potential data inconsistence issue for write
behind device.
Now rename them to serial related name, since the same
mechanism will be used to address reorder overlap write
issue for raid1.
Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 5f86f8adb0a4..7b811645cec7 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -111,11 +111,11 @@ struct md_rdev { */ /* - * The members for check collision of write behind IOs. + * The members for check collision of write IOs. */ - struct list_head wb_list; - spinlock_t wb_list_lock; - wait_queue_head_t wb_io_wait; + struct list_head serial_list; + spinlock_t serial_list_lock; + wait_queue_head_t serial_io_wait; struct work_struct del_work; /* used for delayed sysfs removal */ @@ -201,9 +201,9 @@ enum flag_bits { * it didn't fail, so don't use FailFast * any more for metadata */ - WBCollisionCheck, /* - * multiqueue device should check if there - * is collision between write behind bios. + CollisionCheck, /* + * check if there is collision between raid1 + * serial bios. */ }; @@ -263,9 +263,9 @@ enum mddev_sb_flags { MD_SB_NEED_REWRITE, /* metadata write needs to be repeated */ }; -#define NR_WB_INFOS 8 -/* record current range of write behind IOs */ -struct wb_info { +#define NR_SERIAL_INFOS 8 +/* record current range of serialize IOs */ +struct serial_info { sector_t lo; sector_t hi; struct list_head list; @@ -487,7 +487,7 @@ struct mddev { */ struct work_struct flush_work; struct work_struct event_work; /* used by dm to report failure event */ - mempool_t *wb_info_pool; + mempool_t *serial_info_pool; void (*sync_super)(struct mddev *mddev, struct md_rdev *rdev); struct md_cluster_info *cluster_info; unsigned int good_device_nr; /* good device num within cluster raid */ @@ -737,7 +737,7 @@ extern struct bio *bio_alloc_mddev(gfp_t gfp_mask, int nr_iovecs, extern void md_reload_sb(struct mddev *mddev, int raid_disk); extern void md_update_sb(struct mddev *mddev, int force); extern void md_kick_rdev_from_array(struct md_rdev * rdev); -extern void mddev_create_wb_pool(struct mddev *mddev, struct md_rdev *rdev, +extern void mddev_create_serial_pool(struct mddev *mddev, struct md_rdev *rdev, bool is_suspend); struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr); struct md_rdev *md_find_rdev_rcu(struct mddev *mddev, dev_t dev); |