diff options
author | Manuel Bentele | 2020-08-31 15:01:04 +0200 |
---|---|---|
committer | Manuel Bentele | 2020-08-31 15:01:04 +0200 |
commit | 753aee3e741301e3b461b2e7930c9f7eef80e659 (patch) | |
tree | 87e1547211aba4080d3d9b87b51b79d5048c9f8d /.vscode/tasks.json | |
parent | [KERNEL] make private network functions static (diff) | |
download | dnbd3-753aee3e741301e3b461b2e7930c9f7eef80e659.tar.gz dnbd3-753aee3e741301e3b461b2e7930c9f7eef80e659.tar.xz dnbd3-753aee3e741301e3b461b2e7930c9f7eef80e659.zip |
[KERNEL] set socket timeouts with new function and time structure
This patch replaces the deprecated kernel_setsockopt() function with the
socket generic function sock_setsockopt() to set the send and receive
timeout for all used sockets in the kernel module. The timeout data type
is choosen according to the available kernel version, so that the dnbd3
kernel module supports the new y2038-problem-solving socket options.
With both changes, the kernel module runs on Linux kernel 5.4 LTS and
later (including Linux kernel 5.9).
Diffstat (limited to '.vscode/tasks.json')
0 files changed, 0 insertions, 0 deletions