Samuel Thibault
2008-Jul-18 17:09 UTC
[Xen-devel] [PATCH] mini-os: fix FS frontend index reading
mini-os: fix FS frontend index reading Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com> diff -r 09105412f187 extras/mini-os/fs-front.c --- a/extras/mini-os/fs-front.c Fri Jul 18 17:56:33 2008 +0100 +++ b/extras/mini-os/fs-front.c Fri Jul 18 18:08:01 2008 +0100 @@ -737,7 +737,7 @@ DEBUG("Event from import [%d:%d].\n", import->dom_id, import->export_id); moretodo: - rp = import->ring.sring->req_prod; + rp = import->ring.sring->rsp_prod; rmb(); /* Ensure we see queued responses up to ''rp''. */ cons = import->ring.rsp_cons; while (cons != rp) @@ -747,7 +747,7 @@ rsp = RING_GET_RESPONSE(&import->ring, cons); DEBUG("Response at idx=%d to request id=%d, ret_val=%lx\n", - import->ring.rsp_cons, rsp->id, rsp->ret_val); + cons, rsp->id, rsp->ret_val); req = &import->requests[rsp->id]; memcpy(&req->shadow_rsp, rsp, sizeof(struct fsif_response)); DEBUG("Waking up: %s\n", req->thread->name); _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel