diff options
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index d56cb2ae515f..c2059e25d03f 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -2211,6 +2211,9 @@ static int stop(mddev_t *mddev) | |||
2211 | { | 2211 | { |
2212 | conf_t *conf = mddev_to_conf(mddev); | 2212 | conf_t *conf = mddev_to_conf(mddev); |
2213 | 2213 | ||
2214 | raise_barrier(conf, 0); | ||
2215 | lower_barrier(conf); | ||
2216 | |||
2214 | md_unregister_thread(mddev->thread); | 2217 | md_unregister_thread(mddev->thread); |
2215 | mddev->thread = NULL; | 2218 | mddev->thread = NULL; |
2216 | blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ | 2219 | blk_sync_queue(mddev->queue); /* the unplug fn references 'conf'*/ |