]> xenbits.xensource.com Git - xenclient/kernel.git/commit
xenbus: Improvements to wait_for_devices().
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Jul 2007 12:29:33 +0000 (13:29 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 25 Jul 2007 12:29:33 +0000 (13:29 +0100)
commit507b218c3718b0e62087c2936d57a5fee32b59f0
tree1e97ee33ab0218eb3e089802c18003589b70e261
parent3e8dd1329f67fc02e6a91369c7342dd20ba8a6ad
xenbus: Improvements to wait_for_devices().
 1. When printing a warning about a timed-out device, print the
 current state of both ends of the device connection (i.e., backend as
 well as frontend).
 2. A device is 'not yet connected' only when the local state is *less
 than* XenbusStateConnected. If the state is Closing or Closed
 (usually because of an explicit failure when trying to make the
 connection) then we should not wait for the connection to occur -- it
 will never happen!

Signed-off-by: Keir Fraser <keir@xensource.com>
drivers/xen/xenbus/xenbus_probe.c