[pnfs] [PATCH 5/8] Clear XPRT_COPY_CALLDIR in xs_tcp_check_recm

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


From: Rahul Iyer <iyer at netapp.com>

Since we're now reading the call/reply flag as a separate entity and not as
"data", we need to clear the XPRT_COPY_CALLDIR flag as well in xs_tcp_check_recm.

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

diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 75fa52b..7e03d57 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -622,6 +622,7 @@ static void xs_tcp_check_recm(struct rpc_xprt *xprt)
 		xprt->tcp_offset = 0;
 		if (xprt->tcp_flags & XPRT_LAST_FRAG) {
 			xprt->tcp_flags &= ~XPRT_COPY_DATA;
+			xprt->tcp_flags &= ~XPRT_COPY_CALLDIR;
 			xprt->tcp_flags |= XPRT_COPY_XID;
 			xprt->tcp_copied = 0;
 		}
-- 
1.5.0.2


More information about the pNFS mailing list