]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen-netback: Handle backend state transitions in a more robust way
authorPaul Durrant <Paul.Durrant@citrix.com>
Thu, 26 Sep 2013 11:09:52 +0000 (12:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2013 20:31:38 +0000 (12:31 -0800)
commit5fe14179931a43c9ed41228f6ccbd6be699c4a4e
tree6de2298e10ae49680f35b67bd574b772f53aa6e8
parent4e9728a21f389cbba3bd5403126ed66757f4db1e
xen-netback: Handle backend state transitions in a more robust way

[ Upstream commit ea732dff5cfa10789007bf4a5b935388a0bb2a8f ]

When the frontend state changes netback now specifies its desired state to
a new function, set_backend_state(), which transitions through any
necessary intermediate states.
This fixes an issue observed with some old Windows frontend drivers where
they failed to transition through the Closing state and netback would not
behave correctly.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/xen-netback/xenbus.c