nfs-ganesha 1.4
|
Some tools very usefull in the nfs4 protocol implementation. More...
#include "log.h"
#include "nfs_core.h"
#include "nfs4.h"
#include "sal_functions.h"
Go to the source code of this file.
Functions | |
int | valid_lease (nfs_client_id_t *pclientid) |
int | reserve_lease (nfs_client_id_t *pclientid) |
void | update_lease (nfs_client_id_t *pclientid) |
Some tools very usefull in the nfs4 protocol implementation.
nfs4_lease.c : Some functions to manage NFSv4 leases
$Log$
Definition in file nfs4_lease.c.
int reserve_lease | ( | nfs_client_id_t * | pclientid | ) |
reserve_lease_lock: Check if lease is valid and reserve it and retain cid_mutex.
Check if lease is valid and reserve it and retain cid_mutex.
Lease reservation prevents any other thread from expiring the lease. Caller must call update lease to release the reservation.
pclientid | [IN] clientid record to check lease for. |
Definition at line 115 of file nfs4_lease.c.
void update_lease | ( | nfs_client_id_t * | pclientid | ) |
update_lease: Release a lease reservation, and update lease.
Release a lease reservation, and update lease. Caller must hold cid_mutex.
Lease reservation prevents any other thread from expiring the lease. This function releases the lease reservation. Before releasing the last reservation, cid_last_renew will be updated.
pclientid | [IN] clientid record to check lease for. |
Definition at line 152 of file nfs4_lease.c.
int valid_lease | ( | nfs_client_id_t * | pclientid | ) |
valid_lease: Check if lease is valid, caller holds cid_mutex.
Check if lease is valid, caller holds cid_mutex.
pclientid | [IN] clientid record to check lease for. |
Definition at line 82 of file nfs4_lease.c.