|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.
Resend.
[patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.
This patchset to add O_DIRECT and O_SYNC support to xenblk driver.
At present xenblk driver, a ring buffer have introduced in backend and
frontend, the cache got better for io performance. But at some conditions,
data need write date to disk as soon as possible, this ring buffer made
data could not sync to disk immediately, even open file with O_DIRECT or
O_SYNC flag. Obviously some potential risks at os for IO operation,
so sync data to disk asap which the file open with O_DIRECT/O_SYNC
is meaningful for xenblk driver.
Please review and welcome comment.
Signed-off-by: Joe Jin <joe.jin@xxxxxxxxxx>
---
drivers/xen/blkback/blkback.c | 100 +++++++++++++++++++++++++++++++--------
drivers/xen/blkfront/blkfront.c | 4 +
fs/buffer.c | 40 +++++++++++++++
fs/ext3/inode.c | 6 ++
fs/jbd/checkpoint.c | 2
fs/jbd/commit.c | 2
include/linux/buffer_head.h | 21 ++++++++
include/xen/interface/io/blkif.h | 15 +++++
mm/filemap.c | 2
9 files changed, 173 insertions(+), 19 deletions(-)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [patch 0/6] xenblk: Add O_DIRECT and O_SYNC support.,
Joe Jin <=
|
|
|
|
|