diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-09 11:01:02 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-09 11:27:45 -0500 |
commit | 54c09874929dcaac37ed62ad2eca45d960ba1a00 (patch) | |
tree | 167503fcb0a5d1eab542624a4ae47c93165d47ab /net/sunrpc | |
parent | b70ae915e4282854fb7864519e5ec559ab2de7c3 (diff) |
SUNRPC: Define xs_tcp_fin_timeout only if CONFIG_SUNRPC_DEBUG
Now that the linger code is gone, the xs_tcp_fin_timeout variable has
no real function. Keep it for now, since it is part of the /proc
interface, but only define it if that /proc interface is enabled.
Suggested-by: Anna Schumaker <Anna.Schumaker@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 540d542d85e5..8ab02262c761 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -63,6 +63,8 @@ static unsigned int xprt_max_tcp_slot_table_entries = RPC_MAX_SLOT_TABLE; | |||
63 | static unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT; | 63 | static unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT; |
64 | static unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT; | 64 | static unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT; |
65 | 65 | ||
66 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
67 | |||
66 | #define XS_TCP_LINGER_TO (15U * HZ) | 68 | #define XS_TCP_LINGER_TO (15U * HZ) |
67 | static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO; | 69 | static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO; |
68 | 70 | ||
@@ -75,8 +77,6 @@ static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO; | |||
75 | * someone else's file names! | 77 | * someone else's file names! |
76 | */ | 78 | */ |
77 | 79 | ||
78 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
79 | |||
80 | static unsigned int min_slot_table_size = RPC_MIN_SLOT_TABLE; | 80 | static unsigned int min_slot_table_size = RPC_MIN_SLOT_TABLE; |
81 | static unsigned int max_slot_table_size = RPC_MAX_SLOT_TABLE; | 81 | static unsigned int max_slot_table_size = RPC_MAX_SLOT_TABLE; |
82 | static unsigned int max_tcp_slot_table_limit = RPC_MAX_SLOT_TABLE_LIMIT; | 82 | static unsigned int max_tcp_slot_table_limit = RPC_MAX_SLOT_TABLE_LIMIT; |