]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
- Use fd_lastfile + 1 as the upper bound on nd. This is more correct than
authorjeff <jeff@FreeBSD.org>
Wed, 1 Jul 2009 20:43:46 +0000 (20:43 +0000)
committerjeff <jeff@FreeBSD.org>
Wed, 1 Jul 2009 20:43:46 +0000 (20:43 +0000)
commitcd329071c1adcf814f2822cc399b248393527845
treeb2fc0d630559045a6dc040d8277d005b310be42e
parentbde8460ebe9565e993bf5bdf8731a934b747a650
 - Use fd_lastfile + 1 as the upper bound on nd.  This is more correct than
   using the size of the descriptor array.
 - A lock is not needed to fetch fd_lastfile.  The results are stale the
   instant it is dropped.
 - Use a private mutex pool for select since the pool mutex is not used
   as a leaf.
 - Fetch the si_mtx pointer first before resorting to hashing to compute
   the mutex address.

Reviewed by: McKusick
Approved by: re (kib)
sys/kern/sys_generic.c