Skip to content

Commit cfcb43f

Browse files
James LentiniTrond Myklebust
authored andcommitted
SUNRPC: remove NFS/RDMA client's binary sysctls
Support for binary sysctls is being deprecated in 2.6.24. Since there are no applications using the NFS/RDMA client's binary sysctls, it makes sense to remove them. The patch below does this while leaving the /proc/sys interface unchanged. Please consider this for 2.6.24. Signed-off-by: James Lentini <jlentini@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 4c1fe2f commit cfcb43f

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

‎include/linux/sunrpc/debug.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,6 @@ enum {
8888
CTL_SLOTTABLE_TCP,
8989
CTL_MIN_RESVPORT,
9090
CTL_MAX_RESVPORT,
91-
CTL_SLOTTABLE_RDMA,
92-
CTL_RDMA_MAXINLINEREAD,
93-
CTL_RDMA_MAXINLINEWRITE,
94-
CTL_RDMA_WRITEPADDING,
95-
CTL_RDMA_MEMREG,
9691
};
9792

9893
#endif /* _LINUX_SUNRPC_DEBUG_H_ */

‎net/sunrpc/xprtrdma/transport.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static struct ctl_table_header *sunrpc_table_header;
8989

9090
static ctl_table xr_tunables_table[] = {
9191
{
92-
.ctl_name = CTL_SLOTTABLE_RDMA,
92+
.ctl_name = CTL_UNNUMBERED,
9393
.procname = "rdma_slot_table_entries",
9494
.data = &xprt_rdma_slot_table_entries,
9595
.maxlen = sizeof(unsigned int),
@@ -100,7 +100,7 @@ static ctl_table xr_tunables_table[] = {
100100
.extra2 = &max_slot_table_size
101101
},
102102
{
103-
.ctl_name = CTL_RDMA_MAXINLINEREAD,
103+
.ctl_name = CTL_UNNUMBERED,
104104
.procname = "rdma_max_inline_read",
105105
.data = &xprt_rdma_max_inline_read,
106106
.maxlen = sizeof(unsigned int),
@@ -109,7 +109,7 @@ static ctl_table xr_tunables_table[] = {
109109
.strategy = &sysctl_intvec,
110110
},
111111
{
112-
.ctl_name = CTL_RDMA_MAXINLINEWRITE,
112+
.ctl_name = CTL_UNNUMBERED,
113113
.procname = "rdma_max_inline_write",
114114
.data = &xprt_rdma_max_inline_write,
115115
.maxlen = sizeof(unsigned int),
@@ -118,7 +118,7 @@ static ctl_table xr_tunables_table[] = {
118118
.strategy = &sysctl_intvec,
119119
},
120120
{
121-
.ctl_name = CTL_RDMA_WRITEPADDING,
121+
.ctl_name = CTL_UNNUMBERED,
122122
.procname = "rdma_inline_write_padding",
123123
.data = &xprt_rdma_inline_write_padding,
124124
.maxlen = sizeof(unsigned int),
@@ -129,7 +129,7 @@ static ctl_table xr_tunables_table[] = {
129129
.extra2 = &max_padding,
130130
},
131131
{
132-
.ctl_name = CTL_RDMA_MEMREG,
132+
.ctl_name = CTL_UNNUMBERED,
133133
.procname = "rdma_memreg_strategy",
134134
.data = &xprt_rdma_memreg_strategy,
135135
.maxlen = sizeof(unsigned int),

0 commit comments

Comments
 (0)