Commit b7ba597fb964dfa44284904b3b3d74d44b8e1c42

Authored by Chuck Lever
Committed by J. Bruce Fields
1 parent 8529bc51d3

NSM: Move nsm_use_hostnames to mon.c

Clean up.

Treat the nsm_use_hostnames global variable like nsm_local_state.
Note that the default value of nsm_use_hostnames is still zero.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -53,7 +53,8 @@
53 53 /*
54 54 * Local NSM state
55 55 */
56   -int nsm_local_state;
  56 +int __read_mostly nsm_local_state;
  57 +int __read_mostly nsm_use_hostnames;
57 58  
58 59 static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm)
59 60 {
... ... @@ -59,7 +59,6 @@
59 59 static unsigned long nlm_grace_period;
60 60 static unsigned long nlm_timeout = LOCKD_DFLT_TIMEO;
61 61 static int nlm_udpport, nlm_tcpport;
62   -int nsm_use_hostnames = 0;
63 62  
64 63 /* RLIM_NOFILE defaults to 1024. That seems like a reasonable default here. */
65 64 static unsigned int nlm_max_connections = 1024;