diff options
author | shishir gowda <sgowda@redhat.com> | 2012-08-23 18:34:09 +0530 |
---|---|---|
committer | Vijay Bellur <vbellur@redhat.com> | 2012-08-27 08:08:45 -0700 |
commit | 10617e6cbc73329f259b471327d88375352042b0 (patch) | |
tree | 8fd7b0a1a17763730f11208908263baa8897df6f /xlators/storage/posix/src/posix.h | |
parent | d0c52c8064a4097d97180240b36c53bfe98cac22 (diff) |
storage/posix: implement native linux AIO support
Configurable via cli with "storage.linux-aio" settable option
Backported Avati's patch http://review.gluster.org/#change,3627
BUG: 837495
Change-Id: Ia7c26f5734d34d341debd422a5c59bba31eef844
Signed-off-by: shishir gowda <sgowda@redhat.com>
Reviewed-on: http://review.gluster.org/3849
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 7c2b47bb02b..ce5c94c1686 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -54,6 +54,11 @@ #include "posix-mem-types.h" #include "posix-handle.h" +#ifdef HAVE_LIBAIO +#include <libaio.h> +#include "posix-aio.h" +#endif + /** * posix_fd - internal structure common to file and directory fd's */ @@ -64,7 +69,6 @@ struct posix_fd { DIR * dir; /* handle returned by the kernel */ int flushwrites; int odirect; - int op_performed; struct list_head list; /* to add to the janitor list */ }; @@ -124,6 +128,13 @@ struct posix_private { /* uuid of glusterd that swapned the brick process */ uuid_t glusterd_uuid; + gf_boolean_t aio_configured; + gf_boolean_t aio_init_done; + gf_boolean_t aio_capable; +#ifdef HAVE_LIBAIO + io_context_t ctxp; + pthread_t aiothread; +#endif }; #define POSIX_BASE_PATH(this) (((struct posix_private *)this->private)->base_path) |