xen/blkfront: revalidate after setting capacity
K. Y. Srinivasan [Thu, 18 Mar 2010 22:00:54 +0000 (15:00 -0700)]
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>

drivers/block/xen-blkfront.c

index 9b44022..7fa2a1d 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: