diff options
author | Marc Eshel <eshel@almaden.ibm.com> | 2009-04-03 07:27:49 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2009-04-04 02:41:13 +0200 |
commit | c4bf7868064ce8b9c75d8049d077e593c20602b3 (patch) | |
tree | 0e2cdb25e7733adb01350133de50740821f6bbef /fs/nfsd | |
parent | nfsd41: introduce nfs4_client cl_sessions list (diff) | |
download | linux-c4bf7868064ce8b9c75d8049d077e593c20602b3.tar.xz linux-c4bf7868064ce8b9c75d8049d077e593c20602b3.zip |
nfsd41: release_session when client is expired
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[add CONFIG_NFSD_V4_1 to fix v4.0 regression bug]
Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index b2611999600a..f23385b13065 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -511,6 +511,12 @@ expire_client(struct nfs4_client *clp) sop = list_entry(clp->cl_openowners.next, struct nfs4_stateowner, so_perclient); release_openowner(sop); } + while (!list_empty(&clp->cl_sessions)) { + struct nfsd4_session *ses; + ses = list_entry(clp->cl_sessions.next, struct nfsd4_session, + se_perclnt); + release_session(ses); + } put_nfs4_client(clp); } |