]> xenbits.xensource.com Git - osstest/rumprun.git/commitdiff
xenbus: add two more mb()s
authorWei Liu <liuw@liuw.name>
Tue, 27 Oct 2015 17:54:19 +0000 (17:54 +0000)
committerWei Liu <liuw@liuw.name>
Tue, 27 Oct 2015 17:55:09 +0000 (17:55 +0000)
Signed-off-by: Wei Liu <liuw@liuw.name>
platform/xen/xen/xenbus/xenbus.c

index e2192fec62adc79c2fd0964352af594c36cfd948..86d61a068c8b57c847cce6c89aaac24f619e508f 100644 (file)
@@ -294,6 +294,7 @@ static void xenbus_thread_func(void *ign)
                event->path = data;
                event->token = event->path + bmk_strlen(event->path) + 1;
 
+                mb();
                 xenstore_buf->rsp_cons += msg.len + sizeof(msg);
 
                 spin_lock(&xenbus_req_lock);
@@ -323,6 +324,7 @@ static void xenbus_thread_func(void *ign)
                     req_info[msg.req_id].for_queue->reply,
                     MASK_XENSTORE_IDX(xenstore_buf->rsp_cons),
                     msg.len + sizeof(msg));
+                mb();
                 xenstore_buf->rsp_cons += msg.len + sizeof(msg);
                 spin_lock(&xenbus_req_lock);
                 queue_event(req_info[msg.req_id].reply_queue,