aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-mpath.c2
-rw-r--r--drivers/md/dm-raid1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index 406091f9692b..fcc59c3f756e 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -920,7 +920,7 @@ static void flush_multipath_work(struct multipath *m)
920 flush_workqueue(kmpath_handlerd); 920 flush_workqueue(kmpath_handlerd);
921 multipath_wait_for_pg_init_completion(m); 921 multipath_wait_for_pg_init_completion(m);
922 flush_workqueue(kmultipathd); 922 flush_workqueue(kmultipathd);
923 flush_scheduled_work(); 923 flush_work_sync(&m->trigger_event);
924} 924}
925 925
926static void multipath_dtr(struct dm_target *ti) 926static void multipath_dtr(struct dm_target *ti)
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index c87756eb7a21..0d58b6f875cc 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1138,7 +1138,7 @@ static void mirror_dtr(struct dm_target *ti)
1138 1138
1139 del_timer_sync(&ms->timer); 1139 del_timer_sync(&ms->timer);
1140 flush_workqueue(ms->kmirrord_wq); 1140 flush_workqueue(ms->kmirrord_wq);
1141 flush_scheduled_work(); 1141 flush_work_sync(&ms->trigger_event);
1142 dm_kcopyd_client_destroy(ms->kcopyd_client); 1142 dm_kcopyd_client_destroy(ms->kcopyd_client);
1143 destroy_workqueue(ms->kmirrord_wq); 1143 destroy_workqueue(ms->kmirrord_wq);
1144 free_context(ms, ti, ms->nr_mirrors); 1144 free_context(ms, ti, ms->nr_mirrors);