summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorBrian Foster <bfoster@redhat.com>2013-05-15 12:30:07 -0400
committerAnand Avati <avati@redhat.com>2013-05-15 17:19:06 -0700
commit8a7cda772d34b96c45714160ce4ec3b0c0d5b29b (patch)
treebc62ef68236ed6d2ed7c7545783de3aa0bfa867b /contrib
parent68712c33b4c792449e7d49ae348f96f97175bbd9 (diff)
mount/fuse: enable fuse real async dio when available
fuse has support for optimized async. direct I/O handling via the FUSE_ASYNC_DIO init flag. Enable FUSE_ASYNC_DIO when advertised by fuse. performance/write-behind: fix dio hang Also fix a hang observed during aio-stress testing due to conflicting request handling in write-behind. Overlapping requests are skipped in pick_winds and may never continue when the conflicting write in progress returns. Add a wb_process_queue() call after a non-wb request completes to keep the queue moving. BUG: 963258 Change-Id: Ifba6e8aba7a7790b288a32067706b75f263105d4 Signed-off-by: Brian Foster <bfoster@redhat.com> Reviewed-on: http://review.gluster.org/5014 Reviewed-by: Anand Avati <avati@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/fuse-include/fuse_kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/fuse-include/fuse_kernel.h b/contrib/fuse-include/fuse_kernel.h
index c6396555c52..0c3a11d54a7 100644
--- a/contrib/fuse-include/fuse_kernel.h
+++ b/contrib/fuse-include/fuse_kernel.h
@@ -162,6 +162,7 @@ struct fuse_file_lock {
#define FUSE_BIG_WRITES (1 << 5)
#define FUSE_DONT_MASK (1 << 6)
#define FUSE_DO_READDIRPLUS (1 << 13)
+#define FUSE_ASYNC_DIO (1 << 15)
/**
* CUSE INIT request/reply flags