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:
parent
3f230d717d
commit
500a91e7a3
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue