diff options
| author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-06-24 15:55:26 -0400 |
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-07-10 23:40:36 -0400 |
| commit | 31be5bf15f3dafffce110eb1afadccbf2e3067b4 (patch) | |
| tree | 6e680e926d79a1c5fe6a5a726c3f16cb3b86adfa /include/linux | |
| parent | e092bdcd939416ef911090890096fe07d0281a5e (diff) | |
SUNRPC: Convert the credcache lookup code to use RCU
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/sunrpc/auth.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sunrpc/auth.h b/include/linux/sunrpc/auth.h index 4e78f0c5f014..5974e8a493c4 100644 --- a/include/linux/sunrpc/auth.h +++ b/include/linux/sunrpc/auth.h | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/sunrpc/xdr.h> | 16 | #include <linux/sunrpc/xdr.h> |
| 17 | 17 | ||
| 18 | #include <asm/atomic.h> | 18 | #include <asm/atomic.h> |
| 19 | #include <linux/rcupdate.h> | ||
| 19 | 20 | ||
| 20 | /* size of the nodename buffer */ | 21 | /* size of the nodename buffer */ |
| 21 | #define UNX_MAXNODENAME 32 | 22 | #define UNX_MAXNODENAME 32 |
| @@ -35,6 +36,7 @@ struct rpc_credops; | |||
| 35 | struct rpc_cred { | 36 | struct rpc_cred { |
| 36 | struct hlist_node cr_hash; /* hash chain */ | 37 | struct hlist_node cr_hash; /* hash chain */ |
| 37 | struct list_head cr_lru; /* lru garbage collection */ | 38 | struct list_head cr_lru; /* lru garbage collection */ |
| 39 | struct rcu_head cr_rcu; | ||
| 38 | struct rpc_auth * cr_auth; | 40 | struct rpc_auth * cr_auth; |
| 39 | const struct rpc_credops *cr_ops; | 41 | const struct rpc_credops *cr_ops; |
| 40 | #ifdef RPC_DEBUG | 42 | #ifdef RPC_DEBUG |
| @@ -50,6 +52,7 @@ struct rpc_cred { | |||
| 50 | }; | 52 | }; |
| 51 | #define RPCAUTH_CRED_NEW 0 | 53 | #define RPCAUTH_CRED_NEW 0 |
| 52 | #define RPCAUTH_CRED_UPTODATE 1 | 54 | #define RPCAUTH_CRED_UPTODATE 1 |
| 55 | #define RPCAUTH_CRED_HASHED 2 | ||
| 53 | 56 | ||
| 54 | #define RPCAUTH_CRED_MAGIC 0x0f4aa4f0 | 57 | #define RPCAUTH_CRED_MAGIC 0x0f4aa4f0 |
| 55 | 58 | ||
