[pnfs] [PATCH 7/8] Remove check for call/reply in call_verify
iyer at netapp.com
iyer at netapp.com
Thu Apr 12 06:19:16 EDT 2007
From: Rahul Iyer <iyer at netapp.com>
Removed the check for the call/verify flag in call_decode. This will be checked
in xs_tcp_read_request
Signed-off-by: Rahul Iyer <iyer at netapp.com>
---
net/sunrpc/clnt.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 3e19d32..aa44717 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1194,12 +1194,8 @@ call_verify(struct rpc_task *task)
}
if ((len -= 3) < 0)
goto out_overflow;
- p += 1; /* skip XID */
+ p += 2; /* skip XID and the call/reply flag */
- if ((n = ntohl(*p++)) != RPC_REPLY) {
- printk(KERN_WARNING "call_verify: not an RPC reply: %x\n", n);
- goto out_garbage;
- }
if ((n = ntohl(*p++)) != RPC_MSG_ACCEPTED) {
if (--len < 0)
goto out_overflow;
--
1.5.0.2
More information about the pNFS
mailing list