Repository navigation
Commit ccbf3bf
tcp: shortcut listeners in tcp_get_info()
Being lockless in tcp_get_info() is hard, because we need to add
specific synchronization in TCP fast path, like seqcount.
Following patch will change inet_diag_dump_icsk() to no longer
hold any lock for non listeners, so that we can properly acquire
socket lock in get_tcp_info() and let it return more consistent counters.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 721ad32 commit ccbf3bf
1 file changed
Lines changed: 24 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2721 | 2721 | | |
2722 | 2722 | | |
2723 | 2723 | | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
| 2735 | + | |
| 2736 | + | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
| 2741 | + | |
| 2742 | + | |
| 2743 | + | |
| 2744 | + | |
2724 | 2745 | | |
2725 | 2746 | | |
2726 | 2747 | | |
| |||
2748 | 2769 | | |
2749 | 2770 | | |
2750 | 2771 | | |
2751 | | - | |
2752 | | - | |
2753 | | - | |
2754 | | - | |
2755 | | - | |
2756 | | - | |
2757 | | - | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
2758 | 2775 | | |
2759 | 2776 | | |
2760 | 2777 | | |
| |||
2768 | 2785 | | |
2769 | 2786 | | |
2770 | 2787 | | |
2771 | | - | |
2772 | 2788 | | |
2773 | | - | |
2774 | 2789 | | |
2775 | 2790 | | |
2776 | 2791 | | |
2777 | 2792 | | |
2778 | 2793 | | |
2779 | 2794 | | |
2780 | | - | |
2781 | | - | |
2782 | | - | |
2783 | | - | |
2784 | | - | |
2785 | | - | |
2786 | | - | |
2787 | | - | |
2788 | 2795 | | |
2789 | 2796 | | |
2790 | 2797 | | |
| |||
0 commit comments