[pnfs] [PATCH 08/10] [nfs41-2.6.25] nfs41: no need to mem zero res twice if session recovery fails
Benny Halevy
bhalevy at panasas.com
Thu Mar 20 12:22:40 EDT 2008
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
fs/nfs/nfs4proc.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index e07b413..ae91da0 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -454,10 +454,8 @@ static int nfs4_setup_sequence(struct nfs_client *clp,
if (nfs41_test_session_expired(session)) {
ret = nfs41_recover_session_sync(task->tk_client, clp,
session);
- if (ret) {
- memset(res, 0, sizeof(*res));
+ if (ret)
break;
- }
}
ret = nfs41_setup_sequence(session, args,
res, cache_reply, task);
--
1.5.3.3
More information about the pNFS
mailing list