Commit 508b5ff
mptcp: fix spurious wake-up on under memory pressure.
The wake-up condition currently implemented by mptcp_epollin_ready()
is wrong, as it could mark the MPTCP socket as readable even when
no data are present and the system is under memory pressure.
Explicitly check for some data being available in the receive queue.
Fixes: 5684ab1 ("mptcp: give rcvlowat some love")
Signed-off-by: Paolo Abeni <[email protected]>1 parent eb21976 commit 508b5ff
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
760 | 765 | | |
761 | | - | |
| 766 | + | |
762 | 767 | | |
763 | | - | |
| 768 | + | |
764 | 769 | | |
765 | 770 | | |
766 | 771 | | |
| |||
0 commit comments