net: add sock_set_sndtimeo
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:12 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commit76ee0785f42afbc0418072b7179d95f450d3c9a8
treea10c068a03d52142e83659f975fc0eadf73e4ff2
parent6e43496745e75ac49d644df984d2f4ee5b5b6b4e
net: add sock_set_sndtimeo

Add a helper to directly set the SO_SNDTIMEO_NEW sockopt from kernel
space without going through a fake uaccess.  The interface is
simplified to only pass the seconds value, as that is the only
thing needed at the moment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/dlm/lowcomms.c
include/net/sock.h
net/core/sock.c