aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-12-24 09:59:06 -0500
committerTejun Heo <tj@kernel.org>2010-12-24 09:59:06 -0500
commit30d65030fd14fd3696d927c5e452bee84c589b09 (patch)
treef671d851bd0e7dc296aa2947a3ba3c26d24f9978 /drivers/block
parent0ead5c86ac4c9903da93c76716135bc29d9cd83b (diff)
xen: don't use flush_scheduled_work()
flush_scheduled_work() is deprecated and scheduled to be removed. Directly flush info->work instead. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/xen-blkfront.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 255035cfc88a..c30c18ea48b8 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -538,7 +538,7 @@ static void xlvbd_release_gendisk(struct blkfront_info *info)
538 spin_unlock_irqrestore(&blkif_io_lock, flags); 538 spin_unlock_irqrestore(&blkif_io_lock, flags);
539 539
540 /* Flush gnttab callback work. Must be done with no locks held. */ 540 /* Flush gnttab callback work. Must be done with no locks held. */
541 flush_scheduled_work(); 541 flush_work_sync(&info->work);
542 542
543 del_gendisk(info->gd); 543 del_gendisk(info->gd);
544 544
@@ -587,7 +587,7 @@ static void blkif_free(struct blkfront_info *info, int suspend)
587 spin_unlock_irq(&blkif_io_lock); 587 spin_unlock_irq(&blkif_io_lock);
588 588
589 /* Flush gnttab callback work. Must be done with no locks held. */ 589 /* Flush gnttab callback work. Must be done with no locks held. */
590 flush_scheduled_work(); 590 flush_work_sync(&info->work);
591 591
592 /* Free resources associated with old device channel. */ 592 /* Free resources associated with old device channel. */
593 if (info->ring_ref != GRANT_INVALID_REF) { 593 if (info->ring_ref != GRANT_INVALID_REF) {