diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfs4state.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 070e9e5c0452..8c70f12159b6 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -382,6 +382,24 @@ static void release_openowner(struct nfs4_stateowner *sop) | |||
382 | nfs4_put_stateowner(sop); | 382 | nfs4_put_stateowner(sop); |
383 | } | 383 | } |
384 | 384 | ||
385 | static void | ||
386 | release_session(struct nfsd4_session *ses) | ||
387 | { | ||
388 | list_del(&ses->se_hash); | ||
389 | list_del(&ses->se_perclnt); | ||
390 | nfsd4_put_session(ses); | ||
391 | } | ||
392 | |||
393 | void | ||
394 | free_session(struct kref *kref) | ||
395 | { | ||
396 | struct nfsd4_session *ses; | ||
397 | |||
398 | ses = container_of(kref, struct nfsd4_session, se_ref); | ||
399 | kfree(ses->se_slots); | ||
400 | kfree(ses); | ||
401 | } | ||
402 | |||
385 | static inline void | 403 | static inline void |
386 | renew_client(struct nfs4_client *clp) | 404 | renew_client(struct nfs4_client *clp) |
387 | { | 405 | { |