mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-18 08:35:08 +08:00
xen/blkfront: revalidate after setting capacity
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
parent
b4dddb498c
commit
2def141e71
@ -943,6 +943,7 @@ static void blkfront_connect(struct blkfront_info *info)
|
|||||||
printk(KERN_INFO "Setting capacity to %Lu\n",
|
printk(KERN_INFO "Setting capacity to %Lu\n",
|
||||||
sectors);
|
sectors);
|
||||||
set_capacity(info->gd, sectors);
|
set_capacity(info->gd, sectors);
|
||||||
|
revalidate_disk(info->gd);
|
||||||
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case BLKIF_STATE_SUSPENDED:
|
case BLKIF_STATE_SUSPENDED:
|
||||||
|
Loading…
Reference in New Issue
Block a user