Skip to content

Commit

Permalink
xen/blkfront: revalidate after setting capacity
Browse files Browse the repository at this point in the history
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
K. Y. Srinivasan authored and Jens Axboe committed Aug 7, 2010
1 parent b4dddb4 commit 2def141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/xen-blkfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2def141

Please sign in to comment.