mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
5282fd724b
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> |
||
---|---|---|
.. | ||
cache.h | ||
const.h | ||
debug.h | ||
export.h | ||
Kbuild | ||
nfsd.h | ||
nfsfh.h | ||
state.h | ||
stats.h | ||
syscall.h | ||
xdr.h | ||
xdr3.h | ||
xdr4.h |