linux/fs/nfsd
Marc Eshel 5282fd724b nfsd41: sessionid hashing
Simple sessionid hashing using its monotonically increasing sequence number.

Locking considerations:
sessionid_hashtbl access is controlled by the sessionid_lock spin lock.
It must be taken for insert, delete, and lookup.
nfsd4_sequence looks up the session id and if the session is found,
it calls nfsd4_get_session (still under the sessionid_lock).
nfsd4_destroy_session calls nfsd4_put_session after unhashing
it, so when the session's kref reaches zero it's going to get freed.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[we don't use a prime for sessionid hash table size]
[use sessionid_lock spin lock]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
2009-04-03 17:41:14 -07:00
..
auth.c nfsd: fix cred leak on every rpc 2009-01-27 17:26:59 -05:00
auth.h
export.c
Kconfig nfsd : Define NFSD only when FILE_LOCKING is enabled 2009-03-18 17:30:48 -04:00
lockd.c
Makefile
nfs2acl.c
nfs3acl.c
nfs3proc.c Short write in nfsd becomes a full write to the client 2009-03-18 17:38:40 -04:00
nfs3xdr.c
nfs4acl.c
nfs4callback.c nfsd4: move rpc_client setup to a separate function 2009-03-18 17:38:39 -04:00
nfs4idmap.c
nfs4proc.c nfsd: don't use the deferral service, return NFS4ERR_DELAY 2009-04-03 17:41:12 -07:00
nfs4recover.c nfsd4: don't do lookup within readdir in recovery code 2009-03-18 17:38:40 -04:00
nfs4state.c nfsd41: sessionid hashing 2009-04-03 17:41:14 -07:00
nfs4xdr.c nfsd4: support putpubfh operation 2009-03-18 17:38:40 -04:00
nfscache.c
nfsctl.c knfsd: add file to export stats about nfsd pools 2009-03-18 17:38:42 -04:00
nfsfh.c
nfsproc.c Short write in nfsd becomes a full write to the client 2009-03-18 17:38:40 -04:00
nfssvc.c knfsd: add file to export stats about nfsd pools 2009-03-18 17:38:42 -04:00
nfsxdr.c
stats.c
vfs.c Inconsistent setattr behaviour 2009-03-18 17:59:37 -04:00