]> git.baikalelectronics.ru Git - kernel.git/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)
commit973e98c9f9195c53734f273d6eb772feb043cd77
treeb78cd5db43f49c88afa9ee27e1a7a4ff8e196334
parent075b54755b2a2d70103eadaefe6229ffe47f4feb
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