diff options
Diffstat (limited to 'include/linux/lockd')
-rw-r--r-- | include/linux/lockd/lockd.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/linux/lockd/lockd.h b/include/linux/lockd/lockd.h index 0f9b236bca7f..ab2ffc8a0b44 100644 --- a/include/linux/lockd/lockd.h +++ b/include/linux/lockd/lockd.h | |||
@@ -40,14 +40,13 @@ struct nlm_host { | |||
40 | struct nlm_host * h_next; /* linked list (hash table) */ | 40 | struct nlm_host * h_next; /* linked list (hash table) */ |
41 | struct sockaddr_in h_addr; /* peer address */ | 41 | struct sockaddr_in h_addr; /* peer address */ |
42 | struct rpc_clnt * h_rpcclnt; /* RPC client to talk to peer */ | 42 | struct rpc_clnt * h_rpcclnt; /* RPC client to talk to peer */ |
43 | char h_name[20]; /* remote hostname */ | 43 | char * h_name; /* remote hostname */ |
44 | u32 h_version; /* interface version */ | 44 | u32 h_version; /* interface version */ |
45 | unsigned short h_proto; /* transport proto */ | 45 | unsigned short h_proto; /* transport proto */ |
46 | unsigned short h_reclaiming : 1, | 46 | unsigned short h_reclaiming : 1, |
47 | h_server : 1, /* server side, not client side */ | 47 | h_server : 1, /* server side, not client side */ |
48 | h_inuse : 1, | 48 | h_inuse : 1, |
49 | h_killed : 1, | 49 | h_killed : 1; |
50 | h_monitored : 1; | ||
51 | wait_queue_head_t h_gracewait; /* wait while reclaiming */ | 50 | wait_queue_head_t h_gracewait; /* wait while reclaiming */ |
52 | struct rw_semaphore h_rwsem; /* Reboot recovery lock */ | 51 | struct rw_semaphore h_rwsem; /* Reboot recovery lock */ |
53 | u32 h_state; /* pseudo-state counter */ | 52 | u32 h_state; /* pseudo-state counter */ |
@@ -61,6 +60,16 @@ struct nlm_host { | |||
61 | spinlock_t h_lock; | 60 | spinlock_t h_lock; |
62 | struct list_head h_granted; /* Locks in GRANTED state */ | 61 | struct list_head h_granted; /* Locks in GRANTED state */ |
63 | struct list_head h_reclaim; /* Locks in RECLAIM state */ | 62 | struct list_head h_reclaim; /* Locks in RECLAIM state */ |
63 | struct nsm_handle * h_nsmhandle; /* NSM status handle */ | ||
64 | }; | ||
65 | |||
66 | struct nsm_handle { | ||
67 | struct list_head sm_link; | ||
68 | atomic_t sm_count; | ||
69 | char * sm_name; | ||
70 | struct sockaddr_in sm_addr; | ||
71 | unsigned int sm_monitored : 1, | ||
72 | sm_sticky : 1; /* don't unmonitor */ | ||
64 | }; | 73 | }; |
65 | 74 | ||
66 | /* | 75 | /* |
@@ -171,6 +180,8 @@ void nlm_release_host(struct nlm_host *); | |||
171 | void nlm_shutdown_hosts(void); | 180 | void nlm_shutdown_hosts(void); |
172 | extern struct nlm_host *nlm_find_client(void); | 181 | extern struct nlm_host *nlm_find_client(void); |
173 | extern void nlm_host_rebooted(const struct sockaddr_in *, const struct nlm_reboot *); | 182 | extern void nlm_host_rebooted(const struct sockaddr_in *, const struct nlm_reboot *); |
183 | struct nsm_handle *nsm_find(const struct sockaddr_in *, const char *, int); | ||
184 | void nsm_release(struct nsm_handle *); | ||
174 | 185 | ||
175 | 186 | ||
176 | /* | 187 | /* |