diff options
Diffstat (limited to 'drivers/block/xen-blkfront.c')
-rw-r--r-- | drivers/block/xen-blkfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index 2c2d2e5c159..007db8986e8 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -670,7 +670,7 @@ static void xlvbd_release_gendisk(struct blkfront_info *info) | |||
670 | spin_unlock_irqrestore(&info->io_lock, flags); | 670 | spin_unlock_irqrestore(&info->io_lock, flags); |
671 | 671 | ||
672 | /* Flush gnttab callback work. Must be done with no locks held. */ | 672 | /* Flush gnttab callback work. Must be done with no locks held. */ |
673 | flush_work_sync(&info->work); | 673 | flush_work(&info->work); |
674 | 674 | ||
675 | del_gendisk(info->gd); | 675 | del_gendisk(info->gd); |
676 | 676 | ||
@@ -719,7 +719,7 @@ static void blkif_free(struct blkfront_info *info, int suspend) | |||
719 | spin_unlock_irq(&info->io_lock); | 719 | spin_unlock_irq(&info->io_lock); |
720 | 720 | ||
721 | /* Flush gnttab callback work. Must be done with no locks held. */ | 721 | /* Flush gnttab callback work. Must be done with no locks held. */ |
722 | flush_work_sync(&info->work); | 722 | flush_work(&info->work); |
723 | 723 | ||
724 | /* Free resources associated with old device channel. */ | 724 | /* Free resources associated with old device channel. */ |
725 | if (info->ring_ref != GRANT_INVALID_REF) { | 725 | if (info->ring_ref != GRANT_INVALID_REF) { |