virtio: console: Ensure only one process can have a port open at a time
authorAmit Shah <amit.shah@redhat.com>
Thu, 26 Nov 2009 05:55:38 +0000 (11:25 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:55 +0000 (14:22 +1030)
Add a guest_connected field that ensures only one process
can have a port open at a time.

This also ensures we don't have a race when we later add support for
dropping buffers when closing the char dev and buffer caching is turned
off for the particular port.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c

Simple merge