summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/lib/src/rpc-socket.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2011-03-15 01:53:41 +0000
committerAnand Avati <avati@gluster.com>2011-04-11 01:37:32 -0700
commit4248b4e501abd647e337328944778b447dc5a34d (patch)
tree766288e2b72bb0bec5a6f7ecaf869b848db6ab47 /xlators/nfs/lib/src/rpc-socket.h
parent7b368061eaf15cf8b6e8adc3506b5baabdc466e8 (diff)
nfs-rpc: Exit txbuf transmission loop on EAGAIN
..instead of looping till the buffer is completely transmitted. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand Avati <avati@gluster.com> BUG: 2491 ([glusterfs-3.1.3qa4]: iozone fails due to data corruption) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2491
Diffstat (limited to 'xlators/nfs/lib/src/rpc-socket.h')
-rw-r--r--xlators/nfs/lib/src/rpc-socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/nfs/lib/src/rpc-socket.h b/xlators/nfs/lib/src/rpc-socket.h
index 0f91729774f..8662df0a741 100644
--- a/xlators/nfs/lib/src/rpc-socket.h
+++ b/xlators/nfs/lib/src/rpc-socket.h
@@ -49,7 +49,7 @@ extern ssize_t
nfs_rpcsvc_socket_read (int sockfd, char *readaddr, size_t readsize);
extern ssize_t
-nfs_rpcsvc_socket_write (int sockfd, char *buffer, size_t size);
+nfs_rpcsvc_socket_write (int sockfd, char *buffer, size_t size, int *eagain);
extern int
nfs_rpcsvc_socket_peername (int sockfd, char *hostname, int hostlen);