]> Pileus Git - ~andy/linux/commit
xen/hvc: handle backend CLOSED without CLOSING
authorDavid Vrabel <david.vrabel@citrix.com>
Fri, 21 Sep 2012 16:04:24 +0000 (17:04 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 4 Oct 2012 15:30:29 +0000 (11:30 -0400)
commit9b6934a3b449266850149b717597408354039e95
treeb78cd5db43f49c88afa9ee27e1a7a4ff8e196334
parent4ed5978bdd99114db7773cb3d78f2998bd17f694
xen/hvc: handle backend CLOSED without CLOSING

Backend drivers shouldn't transistion to CLOSED unless the frontend is
CLOSED.  If a backend does transition to CLOSED too soon then the
frontend may not see the CLOSING state and will not properly shutdown.

So, treat an unexpected backend CLOSED state the same as CLOSING.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/tty/hvc/hvc_xen.c