xen: gotta go fast

use smaller timeouts for sleeps while waiting for xen ether and sd devices to come online. in practice they come up very quickly.
This commit is contained in:
mischief 2014-06-25 15:47:31 -07:00
parent 3f230d717d
commit 500a91e7a3
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ backendconnect(Ctlr *ctlr)
xenstore_gets(dir, "state", buf, sizeof buf);
while (strtol(buf, 0, 0) != XenbusStateConnected) {
print("etherxen: waiting for vif %d to connect\n", ctlr->vifno);
tsleep(&up->sleep, return0, 0, 1000);
tsleep(&up->sleep, return0, 0, 50);
xenstore_gets(dir, "state", buf, sizeof buf);
}
}

View file

@ -111,7 +111,7 @@ backendconnect(Ctlr *ctlr)
xenstore_gets(dir, "state", buf, sizeof buf);
while (strtol(buf, 0, 0) != XenbusStateConnected) {
print("sdxen: waiting for vbd %d to connect\n", ctlr->devid);
tsleep(&up->sleep, return0, 0, 1000);
tsleep(&up->sleep, return0, 0, 50);
xenstore_gets(dir, "state", buf, sizeof buf);
}
xenstore_gets(dir, "sector-size", buf, sizeof buf);