linux-stable/drivers/xen/xenbus
SeongJae Park 060eabe8fb xenbus/backend: Protect xenbus callback with lock
A driver's 'reclaim_memory' callback can race with 'probe' or 'remove'
because it will be called whenever memory pressure is detected.  To
avoid such race, this commit embeds a spinlock in each 'xenbus_device'
and make 'xenbus' to hold the lock while the corresponded callbacks are
running.

Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: SeongJae Park <sjpark@amazon.de>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
2020-01-29 07:35:49 -06: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.h xenbus: move xenbus_dev_shutdown() into frontend code... 2019-12-20 13:44:35 +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.c xenbus/backend: Protect xenbus callback with lock 2020-01-29 07:35:49 -06:00
xenbus_probe_backend.c xenbus/backend: Protect xenbus callback with lock 2020-01-29 07:35:49 -06:00
xenbus_probe_frontend.c xenbus: move xenbus_dev_shutdown() into frontend code... 2019-12-20 13:44:35 +01:00
xenbus_xs.c xenbus: Avoid deadlock during suspend due to open transactions 2019-05-28 17:32:15 -04:00