After r237012, the fdgrowtable() doesn't drop the filedesc lock anymore,

so update a stale comment.

Reviewed by:	kib, keramida
This commit is contained in:
Pawel Jakub Dawidek 2013-02-25 20:50:08 +00:00
parent 42b4049c34
commit 893365e42d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=247283

View File

@ -855,9 +855,7 @@ do_dup(struct thread *td, int flags, int old, int new,
/*
* If the caller specified a file descriptor, make sure the file
* table is large enough to hold it, and grab it. Otherwise, just
* allocate a new descriptor the usual way. Since the filedesc
* lock may be temporarily dropped in the process, we have to look
* out for a race.
* allocate a new descriptor the usual way.
*/
if (flags & DUP_FIXED) {
if (new >= fdp->fd_nfiles) {