diff options
author | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-14 10:13:36 -0700 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-14 10:13:36 -0700 |
commit | ac408b608130768fc9d67b836cef7c3f69f24de5 (patch) | |
tree | 2243092022079915d92c46f98ed22cfeda270aae /xlators/nfs | |
parent | d66758b4930224ba8d050f728b701b3259bf9cc7 (diff) |
Revert "Eliminate syscall tight loop when handling EAGAIN in NFS."
This reverts commit 689c1b5044e701e1b695a6e6c80647b9471ba454.
Diffstat (limited to 'xlators/nfs')
-rw-r--r-- | xlators/nfs/lib/src/rpcsvc.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/xlators/nfs/lib/src/rpcsvc.c b/xlators/nfs/lib/src/rpcsvc.c index 3af2d16a0..363b94fbe 100644 --- a/xlators/nfs/lib/src/rpcsvc.c +++ b/xlators/nfs/lib/src/rpcsvc.c @@ -2570,7 +2570,6 @@ tx_remaining: nfs_rpcsvc_socket_block_tx (conn->sockfd); } - errno = 0; written = nfs_rpcsvc_socket_write (conn->sockfd, writeaddr, writesize); if (txbuf->txbehave & RPCSVC_TXB_LAST) { @@ -2580,25 +2579,13 @@ tx_remaining: gf_log (GF_RPCSVC, GF_LOG_TRACE, "conn: 0x%lx, Tx request: %zu," " Tx sent: %zd", (long)conn, writesize, written); - /* - * There was an error transmitting this buffer. We are polling - * for errors. So, there is no necessity to handle closure of - * the connection explicitly here. - */ + /* There was an error transmitting this buffer */ if (written == -1) break; if (written >= 0) txbuf->offset += written; - if (errno == EAGAIN) { - /* - * Socket layer is indicating flow-control. We - * break-out now and wait for the next event indicating - * room for writes. - */ - break; - } /* If the current buffer has been completely transmitted, * delete it from the list and move on to the next buffer. */ |