]> git.baikalelectronics.ru Git - kernel.git/commit
net: add sock_no_linger
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:10 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commitdb2dc2bad6f6989a0e307416e520f24ff8c85087
tree2c878b9ba357b4a52aec683daa19a1c3cf759cec
parent92734d40aa73e8359939ad97c30113a17fab2b6a
net: add sock_no_linger

Add a helper to directly set the SO_LINGER sockopt from kernel space
with onoff set to true and a linger time of 0 without going through a
fake uaccess.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nvme/host/tcp.c
drivers/nvme/target/tcp.c
include/net/sock.h
net/core/sock.c
net/rds/tcp.h
net/rds/tcp_connect.c
net/rds/tcp_listen.c
net/sunrpc/svcsock.c