Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139077
b: refs/heads/master
c: d1881d3
h: refs/heads/master
i:
  139075: a067efb
v: v3
  • Loading branch information
Rusty Russell committed Mar 30, 2009
1 parent 5976150 commit 2ac59f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df1693abc42e34bbc4351e179dbe66c28a94efb8
refs/heads/master: d1881d3192a3d3e8dc4f255b03187f4c36cb0617
7 changes: 7 additions & 0 deletions trunk/Documentation/lguest/lguest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1630,6 +1630,13 @@ static bool service_io(struct device *dev)
}
}

/* OK, so we noted that it was pretty poor to use an fdatasync as a
* barrier. But Christoph Hellwig points out that we need a sync
* *afterwards* as well: "Barriers specify no reordering to the front
* or the back." And Jens Axboe confirmed it, so here we are: */
if (out->type & VIRTIO_BLK_T_BARRIER)
fdatasync(vblk->fd);

/* We can't trigger an IRQ, because we're not the Launcher. It does
* that when we tell it we're done. */
add_used(dev->vq, head, wlen);
Expand Down

0 comments on commit 2ac59f5

Please sign in to comment.