9p/xen: fix connection sequence
authorJuergen Gross <jgross@suse.com>
Mon, 30 Jan 2023 11:30:36 +0000 (12:30 +0100)
committerEric Van Hensbergen <ericvh@kernel.org>
Fri, 24 Feb 2023 13:42:15 +0000 (13:42 +0000)
commitc15fe55d14b3b4ded5af2a3260877460a6ffb8ad
tree895f9d1863beecaf7d8e76aae380ad78d4949e98
parentf1956f4ec15195ec60976d9b5625326285ab102e
9p/xen: fix connection sequence

Today the connection sequence of the Xen 9pfs frontend doesn't match
the documented sequence. It can work reliably only for a PV 9pfs device
having been added at boot time already, as the frontend is not waiting
for the backend to have set its state to "XenbusStateInitWait" before
reading the backend properties from Xenstore.

Fix that by following the documented sequence [1] (the documentation
has a bug, so the reference is for the patch fixing that).

[1]: https://lore.kernel.org/xen-devel/20230130090937.31623-1-jgross@suse.com/T/#u

Link: https://lkml.kernel.org/r/20230130113036.7087-3-jgross@suse.com
Fixes: 868eb122739a ("xen/9pfs: introduce Xen 9pfs transport driver")
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
net/9p/trans_xen.c