]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 23:14:31 +0000 (15:14 -0800)
commite3c1891dca97133a92658b0b03327ed706862a98
tree4b4e2208e0595311b2a8f8be0c72dc572442eedc
parent815df7acb446cd2989d7c8addcf6b23716fc1e08
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