| To: | linux-fsdevel@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 3/7] gfs2: Use generic handlers of O_SYNC AIO DIO |
| From: | Jeff Moyer <jmoyer@xxxxxxxxxx> |
| Date: | Fri, 2 Mar 2012 14:56:11 -0500 |
| Cc: | jack@xxxxxxx, hch@xxxxxxxxxxxxx, Jeff Moyer <jmoyer@xxxxxxxxxx> |
| In-reply-to: | <1330718175-21540-1-git-send-email-jmoyer@xxxxxxxxxx> |
| References: | <1330718175-21540-1-git-send-email-jmoyer@xxxxxxxxxx> |
From: Jan Kara <jack@xxxxxxx>
Use generic handlers to queue fsync() when AIO DIO is completed for O_SYNC
file.
Signed-off-by: Jan Kara <jack@xxxxxxx>
Signed-off-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
---
fs/gfs2/aops.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 501e5cb..9c381ff 100644
--- a/fs/gfs2/aops.c
+++ b/fs/gfs2/aops.c
@@ -1034,7 +1034,7 @@ static ssize_t gfs2_direct_IO(int rw, struct kiocb *iocb,
rv = __blockdev_direct_IO(rw, iocb, inode, inode->i_sb->s_bdev, iov,
offset, nr_segs, gfs2_get_block_direct,
- NULL, NULL, 0);
+ NULL, NULL, DIO_SYNC_WRITES);
out:
gfs2_glock_dq_m(1, &gh);
gfs2_holder_uninit(&gh);
--
1.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 4/7] btrfs: Use generic handlers of O_SYNC AIO DIO, Jeff Moyer |
|---|---|
| Next by Date: | [PATCH 0/7, v2] fs: fix up AIO+DIO+O_SYNC to actually do the sync part, Jeff Moyer |
| Previous by Thread: | [PATCH 4/7] btrfs: Use generic handlers of O_SYNC AIO DIO, Jeff Moyer |
| Next by Thread: | [PATCH 6/7] ext4: honor the O_SYNC flag for aysnchronous direct I/O requests, Jeff Moyer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |