pwait(&req->wait);
- // XXX temporary work-around
- // in case pwait used in proc0. Need a dummy process!
- wait_if((req->flags & BLKIO_PENDING));
-
if (!(errno = req->errcode)) {
memcpy(buf, tmp_buf + r, rd_size);
errno = len;
pwait(&req->wait);
- // XXX temporary work-around
- // in case pwait used in proc0. Need a dummy process!
- wait_if((req->flags & BLKIO_PENDING));
-
int errno = req->errcode;
if (!errno) {
errno = len;