linux/drivers/xen/xenbus
Paul Durrant 672b7763cb xenbus: limit when state is forced to closed
If a driver probe() fails then leave the xenstore state alone. There is no
reason to modify it as the failure may be due to transient resource
allocation issues and hence a subsequent probe() may succeed.

If the driver supports re-binding then only force state to closed during
remove() only in the case when the toolstack may need to clean up. This can
be detected by checking whether the state in xenstore has been set to
closing prior to device removal.

NOTE: Re-bind support is indicated by new boolean in struct xenbus_driver,
      which defaults to false. Subsequent patches will add support to
      some backend drivers.

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2019-12-20 13:44:38 +01:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_client.c xen: drop writing error messages to xenstore 2018-10-26 09:17:16 +02:00
xenbus_comms.c xenbus: track caller request id 2018-02-17 09:40:33 +01:00
xenbus_dev_backend.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xenbus_dev_frontend.c xen/xenbus: fix self-deadlock after killing user process 2019-10-02 16:40:11 -04:00
xenbus_probe_backend.c xenbus: move xenbus_dev_shutdown() into frontend code... 2019-12-20 13:44:35 +01:00
xenbus_probe_frontend.c xenbus: move xenbus_dev_shutdown() into frontend code... 2019-12-20 13:44:35 +01:00
xenbus_probe.c xenbus: limit when state is forced to closed 2019-12-20 13:44:38 +01:00
xenbus_xs.c xenbus: Avoid deadlock during suspend due to open transactions 2019-05-28 17:32:15 -04:00
xenbus.h xenbus: move xenbus_dev_shutdown() into frontend code... 2019-12-20 13:44:35 +01:00