Commit 66b992e8 authored by Stephen Hemminger's avatar Stephen Hemminger

[TCP]: Update tcp_get_info() comments in net/tcp.h

parent 90dedc17
...@@ -351,11 +351,11 @@ struct tcp_opt { ...@@ -351,11 +351,11 @@ struct tcp_opt {
__u8 urg_mode; /* In urgent mode */ __u8 urg_mode; /* In urgent mode */
__u32 snd_up; /* Urgent pointer */ __u32 snd_up; /* Urgent pointer */
/* The syn_wait_lock is necessary only to avoid tcp_get_info having /* The syn_wait_lock is necessary only to avoid proc interface having
* to grab the main lock sock while browsing the listening hash * to grab the main lock sock while browsing the listening hash
* (otherwise it's deadlock prone). * (otherwise it's deadlock prone).
* This lock is acquired in read mode only from tcp_get_info() and * This lock is acquired in read mode only from listening_get_next()
* it's acquired in write mode _only_ from code that is actively * and it's acquired in write mode _only_ from code that is actively
* changing the syn_wait_queue. All readers that are holding * changing the syn_wait_queue. All readers that are holding
* the master sock lock don't need to grab this lock in read mode * 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 * too as the syn_wait_queue writes are always protected from
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment