Tweak comment at end of tcp_input() when calling into tcp_do_segment(): the
pcbinfo lock will be released as well, not just the pcb lock.
This commit is contained in:
parent
6370fd6b05
commit
1cd6eadfbb
@ -985,9 +985,9 @@ findpcb:
|
||||
}
|
||||
|
||||
/*
|
||||
* Segment belongs to a connection in SYN_SENT, ESTABLISHED or
|
||||
* later state. tcp_do_segment() always consumes the mbuf chain
|
||||
* and unlocks the inpcb.
|
||||
* Segment belongs to a connection in SYN_SENT, ESTABLISHED or late
|
||||
* state. tcp_do_segment() always consumes the mbuf chain, unlocks the
|
||||
* inpcb, and unlocks the pcbinfo.
|
||||
*/
|
||||
if (tcp_do_segment(m, th, so, tp, drop_hdrlen, tlen))
|
||||
goto findpcb; /* XXX: TIME_WAIT was nuked. */
|
||||
|
@ -985,9 +985,9 @@ findpcb:
|
||||
}
|
||||
|
||||
/*
|
||||
* Segment belongs to a connection in SYN_SENT, ESTABLISHED or
|
||||
* later state. tcp_do_segment() always consumes the mbuf chain
|
||||
* and unlocks the inpcb.
|
||||
* Segment belongs to a connection in SYN_SENT, ESTABLISHED or late
|
||||
* state. tcp_do_segment() always consumes the mbuf chain, unlocks the
|
||||
* inpcb, and unlocks the pcbinfo.
|
||||
*/
|
||||
if (tcp_do_segment(m, th, so, tp, drop_hdrlen, tlen))
|
||||
goto findpcb; /* XXX: TIME_WAIT was nuked. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user