Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 370926
b: refs/heads/master
c: 9d9598b
h: refs/heads/master
v: v3
  • Loading branch information
Milos Vyletel authored and Rusty Russell committed Mar 12, 2013
1 parent 62812bc commit 9315cdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba06d1e1d3350a38476ea6b7655ba7c047baad67
refs/heads/master: 9d9598b81c5c05495009e81ac0508ec8d1558015
2 changes: 2 additions & 0 deletions trunk/drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
struct virtio_device *vdev = vblk->vdev;
struct request_queue *q = vblk->disk->queue;
char cap_str_2[10], cap_str_10[10];
char *envp[] = { "RESIZE=1", NULL };
u64 capacity, size;

mutex_lock(&vblk->config_lock);
Expand Down Expand Up @@ -568,6 +569,7 @@ static void virtblk_config_changed_work(struct work_struct *work)

set_capacity(vblk->disk, capacity);
revalidate_disk(vblk->disk);
kobject_uevent_env(&disk_to_dev(vblk->disk)->kobj, KOBJ_CHANGE, envp);
done:
mutex_unlock(&vblk->config_lock);
}
Expand Down

0 comments on commit 9315cdb

Please sign in to comment.