Skip to content

Commit 54c0987

Browse files
committed
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
1 parent b70ae91 commit 54c0987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/sunrpc/xprtsock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ static unsigned int xprt_max_tcp_slot_table_entries = RPC_MAX_SLOT_TABLE;
6363
static unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT;
6464
static unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT;
6565

66+
#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
67+
6668
#define XS_TCP_LINGER_TO (15U * HZ)
6769
static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO;
6870

@@ -75,8 +77,6 @@ static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO;
7577
* someone else's file names!
7678
*/
7779

78-
#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
79-
8080
static unsigned int min_slot_table_size = RPC_MIN_SLOT_TABLE;
8181
static unsigned int max_slot_table_size = RPC_MAX_SLOT_TABLE;
8282
static unsigned int max_tcp_slot_table_limit = RPC_MAX_SLOT_TABLE_LIMIT;

0 commit comments

Comments
 (0)