xen/blkfront: revalidate after setting capacity
authorK. Y. Srinivasan <ksrinivasan@novell.com>
Thu, 18 Mar 2010 22:00:54 +0000 (15:00 -0700)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:31:31 +0000 (18:31 +0200)
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/block/xen-blkfront.c

index 9b440221755d7c169ac9a9871e4b330053fb6072..7fa2a1db51e68d3e67d7dbe01a271a4738644985 100644 (file)
@@ -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: