Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211655
b: refs/heads/master
c: e062013
h: refs/heads/master
i:
  211653: e639875
  211651: 7897cb1
  211647: 48b5452
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Oct 21, 2010
1 parent 8fb3c04 commit 4d8c139
Show file tree
Hide file tree
Showing 2 changed files with 9 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: b353a6b821627053f82b4e7b907e824cb7a6879c
refs/heads/master: e062013c7d22e40ee634b818d28fd615db36998e
8 changes: 8 additions & 0 deletions trunk/drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -1738,6 +1738,14 @@ static void virtcons_remove(struct virtio_device *vdev)

unregister_chrdev(portdev->chr_major, "virtio-portsdev");

/*
* When yanking out a device, we immediately lose the
* (device-side) queues. So there's no point in keeping the
* guest side around till we drop our final reference. This
* also means that any ports which are in an open state will
* have to just stop using the port, as the vqs are going
* away.
*/
if (use_multiport(portdev)) {
struct port_buffer *buf;
unsigned int len;
Expand Down

0 comments on commit 4d8c139

Please sign in to comment.