| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] common code for generating tcp_info |
| From: | Joe Perches <joe@xxxxxxxxxxx> |
| Date: | Mon, 07 Jun 2004 07:48:18 -0700 |
| Cc: | David S Miller <davem@xxxxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040604153749.5d8a13b9@xxxxxxxxxxxxxxxxxxxxx> |
| References: | <20040604153749.5d8a13b9@xxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Fri, 2004-06-04 at 15:37, Stephen Hemminger wrote:
> diff -Nru a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c
> --- a/net/ipv4/tcp_diag.c 2004-06-04 15:35:55 -07:00
> +++ b/net/ipv4/tcp_diag.c 2004-06-04 15:35:55 -07:00
> +void tcp_get_info(struct sock *sk, struct tcp_info *info)
What is the appropriate text to update tcp.h?
/* The syn_wait_lock is necessary only to avoid tcp_get_info having
* to grab the main lock sock while browsing the listening hash
* (otherwise it's deadlock prone).
* This lock is acquired in read mode only from tcp_get_info() and
* it's acquired in write mode _only_ from code that is actively
* changing the syn_wait_queue. All readers that are holding
* the master sock lock don't need to grab this lock in read mode
* too as the syn_wait_queue writes are always protected from
* the main sock lock.
*/
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: in-driver QoS, Andi Kleen |
|---|---|
| Next by Date: | abysmal e1000 performance (DITR), Robert Olsson |
| Previous by Thread: | Re: [PATCH] add receive DRS info, David S. Miller |
| Next by Thread: | Re: [PATCH] common code for generating tcp_info, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |