Commit 71ba088
mptcp: cleanup accept and poll
After the previous patch, msk->subflow will never be deleted during
the whole msk lifetime. We don't need anymore to acquire references to
it in mptcp_stream_accept() and we can use the listener subflow accept
queue to simplify mptcp_poll() for listener socket.
Overall this removes a lock pair and 4 more atomic operations per
accept().
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 b29fcfb commit 71ba088
3 files changed
+7
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3493 | 3493 | | |
3494 | 3494 | | |
3495 | 3495 | | |
3496 | | - | |
3497 | | - | |
3498 | | - | |
3499 | | - | |
3500 | 3496 | | |
3501 | 3497 | | |
3502 | | - | |
3503 | | - | |
3504 | | - | |
3505 | | - | |
3506 | | - | |
| 3498 | + | |
3507 | 3499 | | |
3508 | 3500 | | |
3509 | 3501 | | |
| |||
3543 | 3535 | | |
3544 | 3536 | | |
3545 | 3537 | | |
3546 | | - | |
3547 | | - | |
3548 | | - | |
3549 | 3538 | | |
3550 | | - | |
3551 | | - | |
3552 | | - | |
3553 | | - | |
3554 | 3539 | | |
3555 | 3540 | | |
3556 | 3541 | | |
| |||
3596 | 3581 | | |
3597 | 3582 | | |
3598 | 3583 | | |
3599 | | - | |
3600 | | - | |
| 3584 | + | |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
3601 | 3590 | | |
3602 | 3591 | | |
3603 | 3592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1293 | 1293 | | |
1294 | 1294 | | |
1295 | 1295 | | |
1296 | | - | |
1297 | 1296 | | |
1298 | 1297 | | |
1299 | 1298 | | |
| |||
0 commit comments