Commit c2e6048
mptcp: fix race in release_cb
If we receive a MPTCP_PUSH_PENDING even from a subflow when
mptcp_release_cb() is serving the previous one, the latter
will be delayed up to the next release_sock(msk).
Address the issue implementing a test/serve loop for such
event.
Additionally rename the push helper to __mptcp_push_pending()
to be more consistent with the existing code.
Fixes: 6e628cd ("mptcp: use mptcp release_cb for delayed tasks")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 2948d0a commit c2e6048
1 file changed
+21
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
1448 | | - | |
| 1448 | + | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | 1451 | | |
| |||
1697 | 1697 | | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | | - | |
| 1700 | + | |
1701 | 1701 | | |
1702 | 1702 | | |
1703 | 1703 | | |
1704 | 1704 | | |
1705 | 1705 | | |
1706 | 1706 | | |
1707 | | - | |
| 1707 | + | |
1708 | 1708 | | |
1709 | 1709 | | |
1710 | 1710 | | |
| |||
2959 | 2959 | | |
2960 | 2960 | | |
2961 | 2961 | | |
2962 | | - | |
2963 | | - | |
2964 | | - | |
2965 | | - | |
2966 | | - | |
2967 | | - | |
2968 | | - | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
2969 | 2970 | | |
2970 | 2971 | | |
2971 | 2972 | | |
| |||
2974 | 2975 | | |
2975 | 2976 | | |
2976 | 2977 | | |
2977 | | - | |
| 2978 | + | |
| 2979 | + | |
| 2980 | + | |
| 2981 | + | |
2978 | 2982 | | |
2979 | 2983 | | |
| 2984 | + | |
| 2985 | + | |
| 2986 | + | |
2980 | 2987 | | |
2981 | 2988 | | |
2982 | 2989 | | |
2983 | | - | |
| 2990 | + | |
| 2991 | + | |
| 2992 | + | |
2984 | 2993 | | |
2985 | 2994 | | |
2986 | 2995 | | |
| |||
0 commit comments