[pnfs] [PATCH 6/8] Changed xs_tcp_data_recv() to call xs_tcp_read_calldir()

iyer at netapp.com iyer at netapp.com
Thu Apr 12 06:19:15 EDT 2007


From: Rahul Iyer <iyer at netapp.com>

Modified the state machine in xs_tcp_read_calldir() to call
xs_tcp_read_calldir() when the XPRT_COPY_CALLDIR is set. This enables the
call/reply flag to be read in as a separate entity and not as a part of the
"data"

Signed-off-by: Rahul Iyer <iyer at netapp.com>
---
 net/sunrpc/xprtsock.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 7e03d57..61cf741 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -789,6 +789,11 @@ static int xs_tcp_data_recv(read_descriptor_t *rd_desc, struct sk_buff *skb, uns
 			xs_tcp_read_xid(xprt, &desc);
 			continue;
 		}
+		/* Read in the call/reply flag */
+		if (xprt->tcp_flags & XPRT_COPY_CALLDIR) {
+			xs_tcp_read_calldir(xprt, &desc);
+			continue;
+		}
 		/* Read in the request data */
 		if (xprt->tcp_flags & XPRT_COPY_DATA) {
 			xs_tcp_read_request(xprt, &desc);
-- 
1.5.0.2


More information about the pNFS mailing list