aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-01-13 14:59:56 -0500
committerAlasdair G Kergon <agk@redhat.com>2011-01-13 14:59:56 -0500
commitd5ffa387e24646cb1cb55d80fd0f182a00e0edb7 (patch)
tree87f253780f49fc1e438a89fa45ae7313ace6cb3f /drivers/md/dm-raid1.c
parentfecec20e55ec117a09857ac1a455e2e6e2f17df4 (diff)
dm: dont use flush_scheduled_work
flush_scheduled_work() is being deprecated. Flush the used work directly instead. In all dm targets, the only work which uses system_wq is ->trigger_event. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c2
1 files changed, 1 insertions, 1 deletions
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);