diff options
-rw-r--r-- | drivers/md/raid5.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 6c724fde5fd8..fea67727f807 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5413,6 +5413,9 @@ raid5_store_group_thread_cnt(struct mddev *mddev, const char *page, size_t len) | |||
5413 | old_groups = conf->worker_groups; | 5413 | old_groups = conf->worker_groups; |
5414 | old_group_cnt = conf->worker_cnt_per_group; | 5414 | old_group_cnt = conf->worker_cnt_per_group; |
5415 | 5415 | ||
5416 | if (old_groups) | ||
5417 | flush_workqueue(raid5_wq); | ||
5418 | |||
5416 | conf->worker_groups = NULL; | 5419 | conf->worker_groups = NULL; |
5417 | err = alloc_thread_groups(conf, new); | 5420 | err = alloc_thread_groups(conf, new); |
5418 | if (err) { | 5421 | if (err) { |