diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-02 19:35:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-01-02 19:35:23 -0500 |
commit | e6b92572808467f35fd159d47c45b650de29e722 (patch) | |
tree | 5fbd2e6279539c4f3eeeca0d6a69779bdbd0d6a4 /net/sunrpc/xprtsock.c | |
parent | e45428a436765fcd154d461a2739b5640916dc00 (diff) | |
parent | 260f71eff493a844531629854c0935fa8de4fa2c (diff) |
Merge tag 'nfs-for-4.21-1' of git://git.linux-nfs.org/projects/anna/linux-nfs
Pull NFS client updates from Anna Schumaker:
"Stable bugfixes:
- xprtrdma: Yet another double DMA-unmap # v4.20
Features:
- Allow some /proc/sys/sunrpc entries without CONFIG_SUNRPC_DEBUG
- Per-xprt rdma receive workqueues
- Drop support for FMR memory registration
- Make port= mount option optional for RDMA mounts
Other bugfixes and cleanups:
- Remove unused nfs4_xdev_fs_type declaration
- Fix comments for behavior that has changed
- Remove generic RPC credentials by switching to 'struct cred'
- Fix crossing mountpoints with different auth flavors
- Various xprtrdma fixes from testing and auditing the close code
- Fixes for disconnect issues when using xprtrdma with krb5
- Clean up and improve xprtrdma trace points
- Fix NFS v4.2 async copy reboot recovery"
* tag 'nfs-for-4.21-1' of git://git.linux-nfs.org/projects/anna/linux-nfs: (63 commits)
sunrpc: convert to DEFINE_SHOW_ATTRIBUTE
sunrpc: Add xprt after nfs4_test_session_trunk()
sunrpc: convert unnecessary GFP_ATOMIC to GFP_NOFS
sunrpc: handle ENOMEM in rpcb_getport_async
NFS: remove unnecessary test for IS_ERR(cred)
xprtrdma: Prevent leak of rpcrdma_rep objects
NFSv4.2 fix async copy reboot recovery
xprtrdma: Don't leak freed MRs
xprtrdma: Add documenting comment for rpcrdma_buffer_destroy
xprtrdma: Replace outdated comment for rpcrdma_ep_post
xprtrdma: Update comments in frwr_op_send
SUNRPC: Fix some kernel doc complaints
SUNRPC: Simplify defining common RPC trace events
NFS: Fix NFSv4 symbolic trace point output
xprtrdma: Trace mapping, alloc, and dereg failures
xprtrdma: Add trace points for calls to transport switch methods
xprtrdma: Relocate the xprtrdma_mr_map trace points
xprtrdma: Clean up of xprtrdma chunk trace points
xprtrdma: Remove unused fields from rpcrdma_ia
xprtrdma: Cull dprintk() call sites
...
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 44467caf3cd8..13559e6a460b 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -68,8 +68,6 @@ static unsigned int xprt_max_tcp_slot_table_entries = RPC_MAX_SLOT_TABLE; | |||
68 | static unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT; | 68 | static unsigned int xprt_min_resvport = RPC_DEF_MIN_RESVPORT; |
69 | static unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT; | 69 | static unsigned int xprt_max_resvport = RPC_DEF_MAX_RESVPORT; |
70 | 70 | ||
71 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
72 | |||
73 | #define XS_TCP_LINGER_TO (15U * HZ) | 71 | #define XS_TCP_LINGER_TO (15U * HZ) |
74 | static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO; | 72 | static unsigned int xs_tcp_fin_timeout __read_mostly = XS_TCP_LINGER_TO; |
75 | 73 | ||
@@ -159,8 +157,6 @@ static struct ctl_table sunrpc_table[] = { | |||
159 | { }, | 157 | { }, |
160 | }; | 158 | }; |
161 | 159 | ||
162 | #endif | ||
163 | |||
164 | /* | 160 | /* |
165 | * Wait duration for a reply from the RPC portmapper. | 161 | * Wait duration for a reply from the RPC portmapper. |
166 | */ | 162 | */ |
@@ -1589,6 +1585,7 @@ static void xs_udp_set_buffer_size(struct rpc_xprt *xprt, size_t sndsize, size_t | |||
1589 | 1585 | ||
1590 | /** | 1586 | /** |
1591 | * xs_udp_timer - called when a retransmit timeout occurs on a UDP transport | 1587 | * xs_udp_timer - called when a retransmit timeout occurs on a UDP transport |
1588 | * @xprt: controlling transport | ||
1592 | * @task: task that timed out | 1589 | * @task: task that timed out |
1593 | * | 1590 | * |
1594 | * Adjust the congestion window after a retransmit timeout has occurred. | 1591 | * Adjust the congestion window after a retransmit timeout has occurred. |
@@ -2246,6 +2243,7 @@ out: | |||
2246 | 2243 | ||
2247 | /** | 2244 | /** |
2248 | * xs_tcp_setup_socket - create a TCP socket and connect to a remote endpoint | 2245 | * xs_tcp_setup_socket - create a TCP socket and connect to a remote endpoint |
2246 | * @work: queued work item | ||
2249 | * | 2247 | * |
2250 | * Invoked by a work queue tasklet. | 2248 | * Invoked by a work queue tasklet. |
2251 | */ | 2249 | */ |
@@ -3095,10 +3093,8 @@ static struct xprt_class xs_bc_tcp_transport = { | |||
3095 | */ | 3093 | */ |
3096 | int init_socket_xprt(void) | 3094 | int init_socket_xprt(void) |
3097 | { | 3095 | { |
3098 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
3099 | if (!sunrpc_table_header) | 3096 | if (!sunrpc_table_header) |
3100 | sunrpc_table_header = register_sysctl_table(sunrpc_table); | 3097 | sunrpc_table_header = register_sysctl_table(sunrpc_table); |
3101 | #endif | ||
3102 | 3098 | ||
3103 | xprt_register_transport(&xs_local_transport); | 3099 | xprt_register_transport(&xs_local_transport); |
3104 | xprt_register_transport(&xs_udp_transport); | 3100 | xprt_register_transport(&xs_udp_transport); |
@@ -3114,12 +3110,10 @@ int init_socket_xprt(void) | |||
3114 | */ | 3110 | */ |
3115 | void cleanup_socket_xprt(void) | 3111 | void cleanup_socket_xprt(void) |
3116 | { | 3112 | { |
3117 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) | ||
3118 | if (sunrpc_table_header) { | 3113 | if (sunrpc_table_header) { |
3119 | unregister_sysctl_table(sunrpc_table_header); | 3114 | unregister_sysctl_table(sunrpc_table_header); |
3120 | sunrpc_table_header = NULL; | 3115 | sunrpc_table_header = NULL; |
3121 | } | 3116 | } |
3122 | #endif | ||
3123 | 3117 | ||
3124 | xprt_unregister_transport(&xs_local_transport); | 3118 | xprt_unregister_transport(&xs_local_transport); |
3125 | xprt_unregister_transport(&xs_udp_transport); | 3119 | xprt_unregister_transport(&xs_udp_transport); |