]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/smc: send directly on setting TCP_NODELAY
authorDust Li <dust.li@linux.alibaba.com>
Tue, 1 Mar 2022 09:43:59 +0000 (17:43 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:41:23 +0000 (14:41 +0200)
commit18af5fdd2774b51edb0aa0cc290791c85d47e463
tree89ee24669055356c147339ecd3d013b6d1d2652f
parent342d94ead368255670a1675ac7875fd658a39ee8
net/smc: send directly on setting TCP_NODELAY

BugLink: https://bugs.launchpad.net/bugs/1969107
commit b70a5cc045197aad9c159042621baf3c015f6cc7 upstream.

In commit ea785a1a573b("net/smc: Send directly when
TCP_CORK is cleared"), we don't use delayed work
to implement cork.

This patch use the same algorithm, removes the
delayed work when setting TCP_NODELAY and send
directly in setsockopt(). This also makes the
TCP_NODELAY the same as TCP.

Cc: Tony Lu <tonylu@linux.alibaba.com>
Signed-off-by: Dust Li <dust.li@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 7f48521172fb63b9948e86987462cea62564fc2b)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/smc/af_smc.c