diff options
| author | Raghavendra G <raghavendra@gluster.com> | 2010-08-30 08:04:07 +0000 | 
|---|---|---|
| committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-08-30 06:54:17 -0700 | 
| commit | 06607a4de8c4414bb102d61b9cf6307d8da020bb (patch) | |
| tree | a9fc304f78f067c5d9777218e845e57525cec702 /xlators/performance/quick-read/src/quick-read.c | |
| parent | 300b4fefcbb5a5ced4f0554e109679e44cdf44ea (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/quick-read/src/quick-read.c')
| -rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 046e495ef..a952dd55c 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;  | 
