diff options
author | Tejun Heo <tj@kernel.org> | 2011-01-13 19:59:56 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-01-13 19:59:56 +0000 |
commit | d5ffa387e24646cb1cb55d80fd0f182a00e0edb7 (patch) | |
tree | 87f253780f49fc1e438a89fa45ae7313ace6cb3f /drivers/md/dm-mpath.c | |
parent | fecec20e55ec117a09857ac1a455e2e6e2f17df4 (diff) | |
download | blackbird-op-linux-d5ffa387e24646cb1cb55d80fd0f182a00e0edb7.tar.gz blackbird-op-linux-d5ffa387e24646cb1cb55d80fd0f182a00e0edb7.zip |
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-mpath.c')
-rw-r--r-- | drivers/md/dm-mpath.c | 2 |
1 files changed, 1 insertions, 1 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) flush_workqueue(kmpath_handlerd); multipath_wait_for_pg_init_completion(m); flush_workqueue(kmultipathd); - flush_scheduled_work(); + flush_work_sync(&m->trigger_event); } static void multipath_dtr(struct dm_target *ti) |