diff mbox series

[V2] net/rds: correct socket tunable error in rds_tcp_tune()

Message ID 20211201144522.557669-1-william.kucharski@oracle.com (mailing list archive)
State Accepted
Commit 19f36edf14bcdb783aef3af8217df96f76a8ce34
Delegated to: Netdev Maintainers
Headers show
Series [V2] net/rds: correct socket tunable error in rds_tcp_tune() | expand

Checks

Context Check Description
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers fail 1 blamed authors not CCed: sowmini.varadhan@oracle.com; 1 maintainers not CCed: sowmini.varadhan@oracle.com
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/tree_selection success Guessing tree name failed - patch did not apply

Commit Message

William Kucharski Dec. 1, 2021, 2:45 p.m. UTC
Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.

Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
Signed-off-by: William Kucharski <william.kucharski@oracle.com>
---
V2: Add Fixes tag to refer to original commit that introduced the issue

 net/rds/tcp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Santosh Shilimkar Dec. 1, 2021, 3:42 p.m. UTC | #1
> On Dec 1, 2021, at 6:45 AM, William Kucharski <william.kucharski@oracle.com> wrote:
> 
> Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
> instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.
> 
> Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
> Signed-off-by: William Kucharski <william.kucharski@oracle.com>
> ---
> V2: Add Fixes tag to refer to original commit that introduced the issue

Good catch.

Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
patchwork-bot+netdevbpf@kernel.org Dec. 2, 2021, 12:20 p.m. UTC | #2
Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  1 Dec 2021 07:45:22 -0700 you wrote:
> Correct an error where setting /proc/sys/net/rds/tcp/rds_tcp_rcvbuf would
> instead modify the socket's sk_sndbuf and would leave sk_rcvbuf untouched.
> 
> Fixes: c6a58ffed536 ("RDS: TCP: Add sysctl tunables for sndbuf/rcvbuf on rds-tcp socket")
> Signed-off-by: William Kucharski <william.kucharski@oracle.com>
> ---
> V2: Add Fixes tag to refer to original commit that introduced the issue
> 
> [...]

Here is the summary with links:
  - [V2] net/rds: correct socket tunable error in rds_tcp_tune()
    https://git.kernel.org/netdev/net/c/19f36edf14bc

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/rds/tcp.c b/net/rds/tcp.c
index abf19c0e3ba0..5327d130c4b5 100644
--- a/net/rds/tcp.c
+++ b/net/rds/tcp.c
@@ -500,7 +500,7 @@  void rds_tcp_tune(struct socket *sock)
 		sk->sk_userlocks |= SOCK_SNDBUF_LOCK;
 	}
 	if (rtn->rcvbuf_size > 0) {
-		sk->sk_sndbuf = rtn->rcvbuf_size;
+		sk->sk_rcvbuf = rtn->rcvbuf_size;
 		sk->sk_userlocks |= SOCK_RCVBUF_LOCK;
 	}
 	release_sock(sk);