Whamcloud - gitweb
- barrier for potential cache problems
authorbraam <braam>
Wed, 27 Feb 2002 20:57:00 +0000 (20:57 +0000)
committerbraam <braam>
Wed, 27 Feb 2002 20:57:00 +0000 (20:57 +0000)
lustre/ptlrpc/rpc.c

index 05b7bef..6a7b7c9 100644 (file)
@@ -160,6 +160,7 @@ static int rcvd_reply_callback(ptl_event_t *ev, void *data)
 
         if (ev->type == PTL_EVENT_PUT) {
                 rpc->rq_repbuf = ev->mem_desc.start + ev->offset;
+                barrier();
                 wake_up_interruptible(&rpc->rq_wait_for_rep);
         } else { 
                 // XXX make sure we understand all events, including ACK's