]> git.baikalelectronics.ru Git - kernel.git/commit
9p/xen: fix connection sequence
authorJuergen Gross <jgross@suse.com>
Mon, 30 Jan 2023 11:30:36 +0000 (12:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 12:55:26 +0000 (13:55 +0100)
commitf742b75c3be102709763564b334db247ebca8f8a
tree06ef9493736ffd7c52625f60e1ca07be415ac2c1
parentbb3d2266747c617ecc001ae4ffb4f0a0312e49cb
9p/xen: fix connection sequence

[ Upstream commit b1e56e88f84574d2b4ab8b6c6336b5eab0d59984 ]

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: 5860f278c7ab ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/9p/trans_xen.c