virtio: console: Wake up outvq on host notifications
authorAmit Shah <amit.shah@redhat.com>
Mon, 31 Jan 2011 07:36:36 +0000 (13:06 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 22:47:13 +0000 (14:47 -0800)
commit65c888a0816668d5e29e722ee60d9145b514068d
tree26dfadad0ee95948d28b10fb9dc87aa9553be063
parent63a5df9b95f06aed7226b3c5b5e864898c229506
virtio: console: Wake up outvq on host notifications

commit 2770c5ea501be69989a7acf54ec4cb3554c47191 upstream.

The outvq needs to be woken up on host notifications so that buffers
consumed by the host can be reclaimed, outvq freed, and application
writes may proceed again.

The need for this is now finally noticed when I have qemu patches ready
to use nonblocking IO and flow control.

CC: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/virtio_console.c