From 06607a4de8c4414bb102d61b9cf6307d8da020bb Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 30 Aug 2010 08:04:07 +0000 Subject: 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 Signed-off-by: Vijay Bellur BUG: 513 (Introduce 0 copy rdma) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=513 --- xlators/protocol/client/src/client-helpers.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client/src/client-helpers.c') diff --git a/xlators/protocol/client/src/client-helpers.c b/xlators/protocol/client/src/client-helpers.c index 6c028d4ebb7..d8da60aa1ae 100644 --- a/xlators/protocol/client/src/client-helpers.c +++ b/xlators/protocol/client/src/client-helpers.c @@ -98,8 +98,13 @@ client_local_wipe (clnt_local_t *local) if (local) { loc_wipe (&local->loc); - if (local->fd) + if (local->fd) { fd_unref (local->fd); + } + + if (local->iobref) { + iobref_unref (local->iobref); + } GF_FREE (local); } -- cgit