Date: Thu, 26 Mar 2009 13:27:26 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org Subject: svn commit: r190441 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb netinet Message-ID: <200903261327.n2QDRQEr018934@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Thu Mar 26 13:27:26 2009 New Revision: 190441 URL: http://svn.freebsd.org/changeset/base/190441 Log: MFC r184097: Update a comment which to my reading had been misplaced in rev. 1.12 already (but probably had been way above as the code was there twice) and describe what was last changed in rev. 1.199 there (which now is in sync with in6_src.c r184096(HEAD), r189956(stable/7)). Approved by: re (rwatson) Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/netinet/in_pcb.c Modified: stable/7/sys/netinet/in_pcb.c ============================================================================== --- stable/7/sys/netinet/in_pcb.c Thu Mar 26 13:22:29 2009 (r190440) +++ stable/7/sys/netinet/in_pcb.c Thu Mar 26 13:27:26 2009 (r190441) @@ -440,8 +440,9 @@ in_pcbbind_setup(struct inpcb *inp, stru if (pcbinfo != &udbinfo) ipport_tcpallocs++; /* - * Simple check to ensure all ports are not used up causing - * a deadlock here. + * Instead of having two loops further down counting up or down + * make sure that first is always <= last and go with only one + * code path implementing all logic. * * We split the two cases (up and down) so that the direction * is not being tested on each round of the loop.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903261327.n2QDRQEr018934>