Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286945
b: refs/heads/master
c: a72caae
h: refs/heads/master
i:
  286943: 655a7f6
v: v3
  • Loading branch information
Jason Wang authored and Rusty Russell committed Jan 27, 2012
1 parent 7350cd0 commit b6fcf66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4dbc5d9f4f791df8a5879f4a655f517adc7f56d1
refs/heads/master: a72caae21803b74e04e2afda5e035f149d4ea118
6 changes: 3 additions & 3 deletions trunk/drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ bool virtqueue_kick_prepare(struct virtqueue *_vq)
bool needs_kick;

START_USE(vq);
/* Descriptors and available array need to be set before we expose the
* new available array entries. */
virtio_wmb(vq);
/* We need to expose available array entries before checking avail
* event. */
virtio_mb(vq);

old = vq->vring.avail->idx - vq->num_added;
new = vq->vring.avail->idx;
Expand Down

0 comments on commit b6fcf66

Please sign in to comment.