summaryrefslogtreecommitdiffstats
path: root/xlators/performance
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-08-30 08:04:07 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-08-30 06:54:17 -0700
commit06607a4de8c4414bb102d61b9cf6307d8da020bb (patch)
treea9fc304f78f067c5d9777218e845e57525cec702 /xlators/performance
parent300b4fefcbb5a5ced4f0554e109679e44cdf44ea (diff)
changes to client to make use of the rdma functionality.
- preallocate buffers in client and pass them to transport layer whenever a large response is expected. Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513
Diffstat (limited to 'xlators/performance')
-rw-r--r--xlators/performance/quick-read/src/quick-read.c8
-rw-r--r--xlators/performance/quick-read/src/quick-read.h2
2 files changed, 4 insertions, 6 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c
index 046e495efe9..a952dd55c75 100644
--- a/xlators/performance/quick-read/src/quick-read.c
+++ b/xlators/performance/quick-read/src/quick-read.c
@@ -322,7 +322,7 @@ qr_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
goto out;
}
- content = dict_get (dict, GLUSTERFS_CONTENT_KEY);
+ content = dict_get (dict, GF_CONTENT_KEY);
if (content == NULL) {
goto out;
}
@@ -445,7 +445,7 @@ qr_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xattr_req)
if (!cached) {
if (xattr_req) {
- content = dict_get (xattr_req, GLUSTERFS_CONTENT_KEY);
+ content = dict_get (xattr_req, GF_CONTENT_KEY);
if (content) {
requested_size = data_to_uint64 (content);
}
@@ -456,7 +456,7 @@ qr_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, dict_t *xattr_req)
size = (conf->max_file_size > requested_size) ?
conf->max_file_size : requested_size;
- op_ret = dict_set (xattr_req, GLUSTERFS_CONTENT_KEY,
+ op_ret = dict_set (xattr_req, GF_CONTENT_KEY,
data_from_uint64 (size));
if (op_ret < 0) {
op_ret = -1;
@@ -972,7 +972,7 @@ qr_readv (call_frame_t *frame, xlator_t *this, fd_t *fd, size_t size,
}
content = dict_get (qr_inode->xattr,
- GLUSTERFS_CONTENT_KEY);
+ GF_CONTENT_KEY);
stbuf = qr_inode->stbuf;
diff --git a/xlators/performance/quick-read/src/quick-read.h b/xlators/performance/quick-read/src/quick-read.h
index 7207a33a554..15c469725b0 100644
--- a/xlators/performance/quick-read/src/quick-read.h
+++ b/xlators/performance/quick-read/src/quick-read.h
@@ -43,8 +43,6 @@
#include <fnmatch.h>
#include "quick-read-mem-types.h"
-#define GLUSTERFS_CONTENT_KEY "glusterfs.content"
-
struct qr_fd_ctx {
char opened;
char disabled;