]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xen-blkback: do not use state 3 (XenbusStateInitialised)
authorroyger <royger@FreeBSD.org>
Tue, 22 May 2018 08:51:16 +0000 (08:51 +0000)
committerroyger <royger@FreeBSD.org>
Tue, 22 May 2018 08:51:16 +0000 (08:51 +0000)
commit9f17264d3f3077a36cb88dd3b563c5fd787b6d96
tree5ca27cb480d8ce2ca7393d04540d91f41ab67a12
parent660c229aaf72f5f531237a6ec8de40bcc584f825
xen-blkback: do not use state 3 (XenbusStateInitialised)

Linux will not connect to a backend that's in state 3
(XenbusStateInitialised), it needs to be in state 2
(XenbusStateInitWait) for Linux to attempt to connect to the backend.

The protocol seems to suggest that the backend should indeed wait in
state 2 for the frontend to connect, which makes state 3 unusable for
disk backends.

Also make sure blkback will connect to the frontend if the frontend
reaches state 3 (XenbusStateInitialised) before blkback has processed
the results from the hotplug script (Submitted by Nathan Friess).

MFC after: 1 week
sys/dev/xen/blkback/blkback.c