Message ID | 039d97d7c7d90a52e55aa90760585eea7cb0d027.1613755058.git.pabeni@redhat.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 52557dbc7538ecceb27ef2206719a47a8039a335 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mptcp: a bunch of fixes | expand |
Context | Check | Description |
---|---|---|
netdev/cover_letter | success | Link |
netdev/fixes_present | success | Link |
netdev/patch_count | success | Link |
netdev/tree_selection | success | Clearly marked for net |
netdev/subject_prefix | success | Link |
netdev/cc_maintainers | fail | 2 blamed authors not CCed: mathew.j.martineau@linux.intel.com peter.krystad@linux.intel.com; 3 maintainers not CCed: mathew.j.martineau@linux.intel.com matthieu.baerts@tessares.net peter.krystad@linux.intel.com |
netdev/source_inline | success | Was 0 now: 0 |
netdev/verify_signedoff | success | Link |
netdev/module_param | success | Was 0 now: 0 |
netdev/build_32bit | success | Errors and warnings before: 1 this patch: 1 |
netdev/kdoc | success | Errors and warnings before: 0 this patch: 0 |
netdev/verify_fixes | success | Link |
netdev/checkpatch | warning | WARNING: line length of 82 exceeds 80 columns |
netdev/build_allmodconfig_warn | success | Errors and warnings before: 1 this patch: 1 |
netdev/header_inline | success | Link |
netdev/stable | success | Stable not CCed |
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index 8b2338dfdc80..59f992fe6728 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -1018,6 +1018,12 @@ static void subflow_data_ready(struct sock *sk) msk = mptcp_sk(parent); if (state & TCPF_LISTEN) { + /* MPJ subflow are removed from accept queue before reaching here, + * avoid stray wakeups + */ + if (reqsk_queue_empty(&inet_csk(sk)->icsk_accept_queue)) + return; + set_bit(MPTCP_DATA_READY, &msk->flags); parent->sk_data_ready(parent); return;