aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/xen-blkfront.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index d137ef8a72be..abed296ce605 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -2345,6 +2345,7 @@ static void blkfront_connect(struct blkfront_info *info)
2345 unsigned long sector_size; 2345 unsigned long sector_size;
2346 unsigned int physical_sector_size; 2346 unsigned int physical_sector_size;
2347 unsigned int binfo; 2347 unsigned int binfo;
2348 char *envp[] = { "RESIZE=1", NULL };
2348 int err, i; 2349 int err, i;
2349 2350
2350 switch (info->connected) { 2351 switch (info->connected) {
@@ -2361,6 +2362,8 @@ static void blkfront_connect(struct blkfront_info *info)
2361 sectors); 2362 sectors);
2362 set_capacity(info->gd, sectors); 2363 set_capacity(info->gd, sectors);
2363 revalidate_disk(info->gd); 2364 revalidate_disk(info->gd);
2365 kobject_uevent_env(&disk_to_dev(info->gd)->kobj,
2366 KOBJ_CHANGE, envp);
2364 2367
2365 return; 2368 return;
2366 case BLKIF_STATE_SUSPENDED: 2369 case BLKIF_STATE_SUSPENDED: