Commit 6af38473 authored by Jens Axboe's avatar Jens Axboe

Merge branch 'stable/for-jens-4.12' of...

Merge branch 'stable/for-jens-4.12' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen into for-4.12/block

Konrad writes:

It has one fix - to emit an uevent whenever the size of the guest disk image
changes.
parents a2c97909 89515d02
...@@ -2345,6 +2345,7 @@ static void blkfront_connect(struct blkfront_info *info) ...@@ -2345,6 +2345,7 @@ static void blkfront_connect(struct blkfront_info *info)
unsigned long sector_size; unsigned long sector_size;
unsigned int physical_sector_size; unsigned int physical_sector_size;
unsigned int binfo; unsigned int binfo;
char *envp[] = { "RESIZE=1", NULL };
int err, i; int err, i;
switch (info->connected) { switch (info->connected) {
...@@ -2361,6 +2362,8 @@ static void blkfront_connect(struct blkfront_info *info) ...@@ -2361,6 +2362,8 @@ static void blkfront_connect(struct blkfront_info *info)
sectors); sectors);
set_capacity(info->gd, sectors); set_capacity(info->gd, sectors);
revalidate_disk(info->gd); revalidate_disk(info->gd);
kobject_uevent_env(&disk_to_dev(info->gd)->kobj,
KOBJ_CHANGE, envp);
return; return;
case BLKIF_STATE_SUSPENDED: 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