tcp: add tcp_sock_set_nodelay
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:19 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:45 +0000 (11:11 -0700)
commit12abc5ee7873a085cc280240822b8ac53c86fecd
treeedd6a9fd7283c51007fd860b55ac1b210e9db135
parentdb10538a4b997a77a1fd561adaaa58afc7dcfa2f
tcp: add tcp_sock_set_nodelay

Add a helper to directly set the TCP_NODELAY sockopt from kernel space
without going through a fake uaccess.  Cleanup the callers to avoid
pointless wrappers now that this is a simple function call.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Acked-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
16 files changed:
drivers/block/drbd/drbd_int.h
drivers/block/drbd/drbd_main.c
drivers/block/drbd/drbd_receiver.c
drivers/infiniband/sw/siw/siw_cm.c
drivers/nvme/host/tcp.c
drivers/nvme/target/tcp.c
drivers/target/iscsi/iscsi_target_login.c
fs/cifs/connect.c
fs/dlm/lowcomms.c
fs/ocfs2/cluster/tcp.c
include/linux/tcp.h
net/ceph/messenger.c
net/ipv4/tcp.c
net/rds/tcp.c
net/rds/tcp.h
net/rds/tcp_listen.c