Commit 2def141e authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Jens Axboe

xen/blkfront: revalidate after setting capacity

Signed-off-by: default avatarK. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent b4dddb49
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment