nfsd41: slots are freed with session
authorAndy Adamson <andros@netapp.com>
Fri, 1 May 2009 15:33:53 +0000 (11:33 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Sun, 3 May 2009 18:45:02 +0000 (14:45 -0400)
The session and slots are allocated all in one piece.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c

index c65a27b..3b711f5 100644 (file)
@@ -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);
 }