[pnfs] [PATCH 09/16] SQUASHME: nfs41: remove unnecessary checks in nfs41_sequence_done

Benny Halevy bhalevy at panasas.com
Tue Oct 7 14:38:52 EDT 2008


From: Andy Adamson <andros at netapp.com>

Signed-off-by: Andy Adamson<andros at netapp.com>
Signed-off-by: Benny Halevy <bhalevy at panasas.com>
---
 fs/nfs/nfs4proc.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index f99d409..ed303b9 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -327,11 +327,6 @@ static void nfs41_sequence_done(struct nfs_client *clp,
 	if (res->sr_flags & SEQ4_STATUS_USE_TK_STATUS)
 		status =  rpc_status;
 
-	if (res->sr_session == NULL) {
-		dprintk("%s: no session: status %d\n", __func__, status);
-		return;
-	}
-
 	tbl = &res->sr_session->fore_channel.slot_table;
 	slot = res->sr_slot;
 	if (slot == NULL) {
@@ -4758,7 +4753,6 @@ int nfs4_proc_create_session(struct nfs4_session *session, int reset)
 	struct nfs_client *clp = session->clp;
 
 	dprintk("--> %s clp=%p session=%p\n", __func__, clp, session);
-	BUG_ON(session == NULL);
 
 	status = _nfs4_proc_create_session(session);
 	if (status)
@@ -4810,7 +4804,6 @@ int nfs4_proc_destroy_session(struct nfs4_session *session)
 	struct rpc_message msg;
 
 	dprintk("--> nfs4_proc_destroy_session\n");
-	BUG_ON(session == NULL);
 
 	msg.rpc_proc = nfs4_proc(session->clp, NFSPROC4_CLNT_DESTROY_SESSION);
 	msg.rpc_argp = session;
-- 
1.6.0.2



More information about the pNFS mailing list