kNFSd - 6 of 8 - RENEW and lease management for NFSv4 server
Subsystems (2)
PATCH 1/1 kNFSd - 6 of 8 - RENEW and lease management for NFSv4 server
### Comments for ChangeSet
From: "William A.(Andy) Adamson" <[email protected]>
Put all clients in a LRU list and use a "work_queue" to expire old clients periodically.
----------- Diffstat output ------------
./fs/nfsd/nfs4proc.c | 6 -- ./fs/nfsd/nfs4state.c | 122 ++++++++++++++++++++++++++++++++++++++++--- ./include/linux/nfsd/nfsd.h | 1 ./include/linux/nfsd/state.h | 5 + 4 files changed, 121 insertions(+), 13 deletions(-)
fs/nfsd/nfs4proc.c renamed from fs/nfsd/nfs4proc.c~current~ +0 -6
@@ -147,12 +147,6 @@ nfsd4_open(struct svc_rqst *rqstp, strucreturn 0 ; } -static inline int -nfsd4_renew (clientid_t *clientid) -{ -return nfs_ok; -} -/* * filehandle-manipulating ops. */
fs/nfsd/nfs4state.c renamed from fs/nfsd/nfs4state.c~current~ +115 -7
198 lines not on this page · raw message
include/linux/nfsd/nfsd.h renamed from include/linux/nfsd/nfsd.h~current~ +1 -0
@@ -228,6 +228,7 @@ extern struct timeval nfssvc_boot;#define COMPOUND_ERR_SLACK_SPACE 12/* OP_SETATTR */ #define NFSD_LEASE_TIME 60/* seconds */ +#define NFSD_LAUNDROMAT_MINTIMEOUT 10/* seconds */ /* * The following attributes are currently not supported by the NFSv4 server:
include/linux/nfsd/state.h renamed from include/linux/nfsd/state.h~current~ +5 -0
@@ -73,14 +73,19 @@ struct nfs4_client {struct list_head cl_idhash;/* hash by cl_clientid.id */ struct list_head cl_strhash;/* hash by cl_name */ struct list_head cl_perclient;/* list: stateowners */ +struct list_head cl_lru;/* tail queue */ struct xdr_netobj cl_name;/* id generated by client */ nfs4_verifier cl_verifier;/* generated by client */ +time_t cl_time;/* time of last lease renewal */ u32 cl_addr;/* client ipaddress */ struct svc_cred cl_cred;/* setclientid principal */ clientid_t cl_clientid;/* generated by server */ nfs4_verifier cl_confirm;/* generated by server */ }; +extern time_t nfs4_laundromat (void ); +int nfsd4_renew (clientid_t *clid); +static inline void update_stateid (stateid_t *stateid) {
-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs