diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-mpath.c | 8 | ||||
-rw-r--r-- | drivers/md/md.c | 14 |
2 files changed, 9 insertions, 13 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 32d0b878eccc..dce971dbdfa3 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c | |||
@@ -1116,8 +1116,9 @@ static int pg_init_limit_reached(struct multipath *m, struct pgpath *pgpath) | |||
1116 | return limit_reached; | 1116 | return limit_reached; |
1117 | } | 1117 | } |
1118 | 1118 | ||
1119 | static void pg_init_done(struct dm_path *path, int errors) | 1119 | static void pg_init_done(void *data, int errors) |
1120 | { | 1120 | { |
1121 | struct dm_path *path = data; | ||
1121 | struct pgpath *pgpath = path_to_pgpath(path); | 1122 | struct pgpath *pgpath = path_to_pgpath(path); |
1122 | struct priority_group *pg = pgpath->pg; | 1123 | struct priority_group *pg = pgpath->pg; |
1123 | struct multipath *m = pg->m; | 1124 | struct multipath *m = pg->m; |
@@ -1183,12 +1184,11 @@ static void pg_init_done(struct dm_path *path, int errors) | |||
1183 | 1184 | ||
1184 | static void activate_path(struct work_struct *work) | 1185 | static void activate_path(struct work_struct *work) |
1185 | { | 1186 | { |
1186 | int ret; | ||
1187 | struct pgpath *pgpath = | 1187 | struct pgpath *pgpath = |
1188 | container_of(work, struct pgpath, activate_path); | 1188 | container_of(work, struct pgpath, activate_path); |
1189 | 1189 | ||
1190 | ret = scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev)); | 1190 | scsi_dh_activate(bdev_get_queue(pgpath->path.dev->bdev), |
1191 | pg_init_done(&pgpath->path, ret); | 1191 | pg_init_done, &pgpath->path); |
1192 | } | 1192 | } |
1193 | 1193 | ||
1194 | /* | 1194 | /* |
diff --git a/drivers/md/md.c b/drivers/md/md.c index b182f86a19dd..5f154ef1e4be 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -98,44 +98,40 @@ static struct ctl_table_header *raid_table_header; | |||
98 | 98 | ||
99 | static ctl_table raid_table[] = { | 99 | static ctl_table raid_table[] = { |
100 | { | 100 | { |
101 | .ctl_name = DEV_RAID_SPEED_LIMIT_MIN, | ||
102 | .procname = "speed_limit_min", | 101 | .procname = "speed_limit_min", |
103 | .data = &sysctl_speed_limit_min, | 102 | .data = &sysctl_speed_limit_min, |
104 | .maxlen = sizeof(int), | 103 | .maxlen = sizeof(int), |
105 | .mode = S_IRUGO|S_IWUSR, | 104 | .mode = S_IRUGO|S_IWUSR, |
106 | .proc_handler = &proc_dointvec, | 105 | .proc_handler = proc_dointvec, |
107 | }, | 106 | }, |
108 | { | 107 | { |
109 | .ctl_name = DEV_RAID_SPEED_LIMIT_MAX, | ||
110 | .procname = "speed_limit_max", | 108 | .procname = "speed_limit_max", |
111 | .data = &sysctl_speed_limit_max, | 109 | .data = &sysctl_speed_limit_max, |
112 | .maxlen = sizeof(int), | 110 | .maxlen = sizeof(int), |
113 | .mode = S_IRUGO|S_IWUSR, | 111 | .mode = S_IRUGO|S_IWUSR, |
114 | .proc_handler = &proc_dointvec, | 112 | .proc_handler = proc_dointvec, |
115 | }, | 113 | }, |
116 | { .ctl_name = 0 } | 114 | { } |
117 | }; | 115 | }; |
118 | 116 | ||
119 | static ctl_table raid_dir_table[] = { | 117 | static ctl_table raid_dir_table[] = { |
120 | { | 118 | { |
121 | .ctl_name = DEV_RAID, | ||
122 | .procname = "raid", | 119 | .procname = "raid", |
123 | .maxlen = 0, | 120 | .maxlen = 0, |
124 | .mode = S_IRUGO|S_IXUGO, | 121 | .mode = S_IRUGO|S_IXUGO, |
125 | .child = raid_table, | 122 | .child = raid_table, |
126 | }, | 123 | }, |
127 | { .ctl_name = 0 } | 124 | { } |
128 | }; | 125 | }; |
129 | 126 | ||
130 | static ctl_table raid_root_table[] = { | 127 | static ctl_table raid_root_table[] = { |
131 | { | 128 | { |
132 | .ctl_name = CTL_DEV, | ||
133 | .procname = "dev", | 129 | .procname = "dev", |
134 | .maxlen = 0, | 130 | .maxlen = 0, |
135 | .mode = 0555, | 131 | .mode = 0555, |
136 | .child = raid_dir_table, | 132 | .child = raid_dir_table, |
137 | }, | 133 | }, |
138 | { .ctl_name = 0 } | 134 | { } |
139 | }; | 135 | }; |
140 | 136 | ||
141 | static const struct block_device_operations md_fops; | 137 | static const struct block_device_operations md_fops; |