[pnfs] [PATCH 4/8] Changed xs_tcp_read_xid to read in call/reply flag next

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


From: Rahul Iyer <iyer at netapp.com>

Changed xs_tcp_read_xid to set the XPRT_COPY_CALLDIR flag instead of the
XPRT_COPY_DATA flag so that the state machine in xs_tcp_data_recv reads the
call/reply flag 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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index ab1e8fb..75fa52b 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -641,7 +641,7 @@ static inline void xs_tcp_read_xid(struct rpc_xprt *xprt, skb_reader_t *desc)
 	if (used != len)
 		return;
 	xprt->tcp_flags &= ~XPRT_COPY_XID;
-	xprt->tcp_flags |= XPRT_COPY_DATA;
+	xprt->tcp_flags |= XPRT_COPY_CALLDIR;
 	xprt->tcp_copied = 4;
 	dprintk("RPC:      reading reply for XID %08x\n",
 						ntohl(xprt->tcp_xid));
-- 
1.5.0.2


More information about the pNFS mailing list