Commit 34d4a2d
Xin Long
sctp: Do not wake readers in __sctp_write_space()
JIRA: https://issues.redhat.com/browse/RHEL-115641
Tested: compile only
commit af29589
Author: Petr Malat <oss@malat.biz>
Date: Fri May 16 10:17:28 2025 +0200
sctp: Do not wake readers in __sctp_write_space()
Function __sctp_write_space() doesn't set poll key, which leads to
ep_poll_callback() waking up all waiters, not only these waiting
for the socket being writable. Set the key properly using
wake_up_interruptible_poll(), which is preferred over the sync
variant, as writers are not woken up before at least half of the
queue is available. Also, TCP does the same.
Signed-off-by: Petr Malat <oss@malat.biz>
Acked-by: Xin Long <lucien.xin@gmail.com>
Link: https://patch.msgid.link/20250516081727.1361451-1-oss@malat.biz
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Xin Long <lxin@redhat.com>1 parent 6d87b50 commit 34d4a2d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9100 | 9100 | | |
9101 | 9101 | | |
9102 | 9102 | | |
9103 | | - | |
| 9103 | + | |
| 9104 | + | |
9104 | 9105 | | |
9105 | 9106 | | |
9106 | 9107 | | |
| |||
0 commit comments