All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen: fix frontend driver disconnected from xenbus on removal
@ 2018-02-01  8:57 Oleksandr Andrushchenko
  2018-02-01  8:57 ` Oleksandr Andrushchenko
  2018-02-01  8:57 ` Oleksandr Andrushchenko
  0 siblings, 2 replies; 12+ messages in thread
From: Oleksandr Andrushchenko @ 2018-02-01  8:57 UTC (permalink / raw)
  To: xen-devel, linux-kernel
  Cc: jgross, david.vrabel, boris.ostrovsky, otubo,
	Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Hi, all!

While working on DRM PV frontend driver I faced an issue with
driver removal, e.g. when driver's .remove callback is called
the driver is already disconnected form the xenbus and it is not
possible to synchronize the process of removal with the backend.
Backend in my case is a user-space application, so this may explain
why backends which are kernel modules do not suffer from this:
it seems that user-space is clumsy and its states are not delivered
through xenbus fast enough.

The obvious way to fix this behavior is to disconnect frontend
drivers from xenbus _after_ their .remove callback is called.

Thank you,
Oleksandr Andrushchenko

Oleksandr Andrushchenko (1):
  xen: fix frontend driver disconnected from xenbus on removal

 drivers/xen/xenbus/xenbus_probe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.4

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [PATCH] xen: fix frontend driver disconnected from xenbus on removal
@ 2018-02-01  8:57 Oleksandr Andrushchenko
  0 siblings, 0 replies; 12+ messages in thread
From: Oleksandr Andrushchenko @ 2018-02-01  8:57 UTC (permalink / raw)
  To: xen-devel, linux-kernel
  Cc: jgross, otubo, boris.ostrovsky, david.vrabel,
	Oleksandr Andrushchenko

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>

Hi, all!

While working on DRM PV frontend driver I faced an issue with
driver removal, e.g. when driver's .remove callback is called
the driver is already disconnected form the xenbus and it is not
possible to synchronize the process of removal with the backend.
Backend in my case is a user-space application, so this may explain
why backends which are kernel modules do not suffer from this:
it seems that user-space is clumsy and its states are not delivered
through xenbus fast enough.

The obvious way to fix this behavior is to disconnect frontend
drivers from xenbus _after_ their .remove callback is called.

Thank you,
Oleksandr Andrushchenko

Oleksandr Andrushchenko (1):
  xen: fix frontend driver disconnected from xenbus on removal

 drivers/xen/xenbus/xenbus_probe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-02-02  7:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-01  8:57 [PATCH] xen: fix frontend driver disconnected from xenbus on removal Oleksandr Andrushchenko
2018-02-01  8:57 ` Oleksandr Andrushchenko
2018-02-01 20:08   ` Boris Ostrovsky
2018-02-01 20:24     ` Oleksandr Andrushchenko
2018-02-01 20:24     ` Oleksandr Andrushchenko
2018-02-01 21:09       ` Boris Ostrovsky
2018-02-02  7:01         ` Oleksandr Andrushchenko
2018-02-02  7:01         ` Oleksandr Andrushchenko
2018-02-01 21:09       ` Boris Ostrovsky
2018-02-01 20:08   ` Boris Ostrovsky
2018-02-01  8:57 ` Oleksandr Andrushchenko
  -- strict thread matches above, loose matches on Subject: below --
2018-02-01  8:57 Oleksandr Andrushchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.