net/rds: correct socket tunable error in rds_tcp_tune()
authorWilliam Kucharski <william.kucharski@oracle.com>
Wed, 1 Dec 2021 14:45:22 +0000 (07:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 07:46:55 +0000 (08:46 +0100)
commit179bbee46177422de32d83d9307d98d6e823af19
tree98e9af5f47f7c34ea12dd1dd49ebc138c0a3a3f3
parent7380ca6ad354a88624f88fe6742367498a68932f
net/rds: correct socket tunable error in rds_tcp_tune()

commit 19f36edf14bcdb783aef3af8217df96f76a8ce34 upstream.

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>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/rds/tcp.c