]> git.baikalelectronics.ru Git - kernel.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)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 8 Feb 2011 21:49:53 +0000 (08:19 +1030)
commitfff2b83cf1f84bf31e6ac1b32472e245d2a4d740
tree47c637a8e1dd803b6df7bd34ab30ea9a8f805a18
parentb91a3d2fc5ef95c6ea5d0efd4ced5dc9c2e99d37
virtio: console: Wake up outvq on host notifications

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>
CC: stable@kernel.org
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>
drivers/tty/hvc/virtio_console.c