]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Apr 2022 18:03:24 +0000 (20:03 +0200)
commit00183be98b9d3dfdca7f473084a2495ace8fc733
tree97d8ba7cd1f22acd69e77358bee2ee58ed30edad
parent9ef86a43d51b527fcea324fe529a3f47fbfe738f
net/smc: send directly on setting TCP_NODELAY

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>
net/smc/af_smc.c