ia64/xen-unstable

changeset 18114:ed5481094c10

mini-os: fix FS frontend index reading

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Jul 21 09:38:33 2008 +0100 (2008-07-21)
parents 25f125425f0f
children dbeddb76c2b9
files extras/mini-os/fs-front.c
line diff
     1.1 --- a/extras/mini-os/fs-front.c	Mon Jul 21 09:38:19 2008 +0100
     1.2 +++ b/extras/mini-os/fs-front.c	Mon Jul 21 09:38:33 2008 +0100
     1.3 @@ -746,7 +746,7 @@ static void fsfront_handler(evtchn_port_
     1.4  
     1.5      DEBUG("Event from import [%d:%d].\n", import->dom_id, import->export_id);
     1.6  moretodo:   
     1.7 -    rp = import->ring.sring->req_prod;
     1.8 +    rp = import->ring.sring->rsp_prod;
     1.9      rmb(); /* Ensure we see queued responses up to 'rp'. */
    1.10      cons = import->ring.rsp_cons;
    1.11      while (cons != rp)
    1.12 @@ -756,7 +756,7 @@ moretodo:
    1.13  
    1.14          rsp = RING_GET_RESPONSE(&import->ring, cons); 
    1.15          DEBUG("Response at idx=%d to request id=%d, ret_val=%lx\n", 
    1.16 -            import->ring.rsp_cons, rsp->id, rsp->ret_val);
    1.17 +            cons, rsp->id, rsp->ret_val);
    1.18          req = &import->requests[rsp->id];
    1.19          memcpy(&req->shadow_rsp, rsp, sizeof(struct fsif_response));
    1.20          DEBUG("Waking up: %s\n", req->thread->name);