Skip to contentSkip to conversation

NFSD Fix for 2.6.30

PATCH Applied [email protected] 2 participants 3 messages May 1, 2009 – May 3, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover NFSD Fix for 2.6.30

Hi Bruce

Please add this patch to the 2.6.30 rc fixes. It prevents an oops on nfsd shutdown.

0001-nfsd41-slots-are-freed-with-session.patch

Thanks

-->Andy

#1 lore raw

PATCH 1/1 nfsd41: slots are freed with session

From: Andy Adamson <[email protected]>

The session and slots are allocated all in one piece.

---
 fs/nfsd/nfs4state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/nfsd/nfs4state.c +0 -1
index c65a27b..3b711f5 100644
@@ -580,7 +580,6 @@ free_session(struct kref *kref)
 		struct nfsd4_cache_entry *e = &ses->se_slots[i].sl_cache_entry;
 		nfsd4_release_respages(e->ce_respages, e->ce_resused);
 	}
-	kfree(ses->se_slots);
 	kfree(ses);
 }
 
Signature · 1 line
1.5.4.3
#2 lore raw

Re: [PATCH 1/1] nfsd41: slots are freed with session

Quoted 3 lines · On Fri, May 01, 2009 at 11:33:53AM -0400, [email protected] wrote:

From: Andy Adamson <[email protected]>

The session and slots are allocated all in one piece.

Thanks, applied for 2.6.30.--b.

Quoted 21 lines
---
 fs/nfsd/nfs4state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/nfsd/nfs4state.c +0 -1
index c65a27b..3b711f5 100644
@@ -580,7 +580,6 @@ free_session(struct kref *kref)
 		struct nfsd4_cache_entry *e = &ses->se_slots[i].sl_cache_entry;
 		nfsd4_release_respages(e->ce_respages, e->ce_resused);
 	}
-	kfree(ses->se_slots);
 	kfree(ses);
 }
 
Signature · 1 line
1.5.4.3