We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ca06a2 commit e226d92Copy full SHA for e226d92
net/mptcp/protocol.h
@@ -760,10 +760,15 @@ static inline u64 mptcp_data_avail(const struct mptcp_sock *msk)
760
761
static inline bool mptcp_epollin_ready(const struct sock *sk)
762
{
763
+ u64 data_avail = mptcp_data_avail(mptcp_sk(sk));
764
+
765
+ if (!data_avail)
766
+ return false;
767
768
/* mptcp doesn't have to deal with small skbs in the receive queue,
- * at it can always coalesce them
769
+ * as it can always coalesce them
770
*/
- return (mptcp_data_avail(mptcp_sk(sk)) >= sk->sk_rcvlowat) ||
771
+ return (data_avail >= sk->sk_rcvlowat) ||
772
(mem_cgroup_sockets_enabled && sk->sk_memcg &&
773
mem_cgroup_under_socket_pressure(sk->sk_memcg)) ||
774
READ_ONCE(tcp_memory_pressure);
0 commit comments