]> git.baikalelectronics.ru Git - kernel.git/commit
xenbus: move xenbus_dev_shutdown() into frontend code...
authorPaul Durrant <pdurrant@amazon.com>
Wed, 11 Dec 2019 15:29:53 +0000 (15:29 +0000)
committerJuergen Gross <jgross@suse.com>
Fri, 20 Dec 2019 12:44:35 +0000 (13:44 +0100)
commit6e0f52225dc4a32ac5b94b70ac05407446d80f1b
tree66786c35a9a06ea9794ad172e36f49b2eef5834c
parent26db3676c71aa41b5164e1d1859bb83a610af9ae
xenbus: move xenbus_dev_shutdown() into frontend code...

...and make it static

xenbus_dev_shutdown() is seemingly intended to cause clean shutdown of PV
frontends when a guest is rebooted. Indeed the function waits for a
conpletion which is only set by a call to xenbus_frontend_closed().

This patch removes the shutdown() method from backends and moves
xenbus_dev_shutdown() from xenbus_probe.c into xenbus_probe_frontend.c,
renaming it appropriately and making it static.

NOTE: In the case where the backend is running in a driver domain, the
      toolstack should have already terminated any frontends that may be
      using it (since Xen does not support re-startable PV driver domains)
      so xenbus_dev_shutdown() should never be called.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/xenbus/xenbus.h
drivers/xen/xenbus/xenbus_probe.c
drivers/xen/xenbus/xenbus_probe_backend.c
drivers/xen/xenbus/xenbus_probe_frontend.c