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:
Robert Watson 2007-05-04 17:45:52 +00:00
parent 6370fd6b05
commit 1cd6eadfbb
2 changed files with 6 additions and 6 deletions

View File

@ -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. */

View File

@ -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. */