]> git.karo-electronics.de Git - mv-sheeva.git/commit
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)
commit3c7969ccb569968a79fab3729075751bc8fc2f78
treec5f9d8362d8b448961cb0bf355a445e14646dec4
parent2030fa496d74b49220308eaccf656e2338019cfd
virtio: console: Ensure only one process can have a port open at a time

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