summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorK. Y. Srinivasan <ksrinivasan@novell.com>2010-03-18 15:00:54 -0700
committerJens Axboe <jaxboe@fusionio.com>2010-08-07 18:31:31 +0200
commit2def141e71d54eccac98dc2c2ba71a82c91b324e (patch)
tree434ce86801037c7c8cee21f24b310a43db2f9445 /drivers/block
parentb4dddb498c0feaff413b2a79c64e910021983775 (diff)
downloadblackbird-op-linux-2def141e71d54eccac98dc2c2ba71a82c91b324e.tar.gz
blackbird-op-linux-2def141e71d54eccac98dc2c2ba71a82c91b324e.zip
xen/blkfront: revalidate after setting capacity
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/xen-blkfront.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 9b440221755d..7fa2a1db51e6 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -943,6 +943,7 @@ static void blkfront_connect(struct blkfront_info *info)
printk(KERN_INFO "Setting capacity to %Lu\n",
sectors);
set_capacity(info->gd, sectors);
+ revalidate_disk(info->gd);
/* fall through */
case BLKIF_STATE_SUSPENDED:
OpenPOWER on IntegriCloud