svn commit: r247283 - head/sys/kern

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Feb 25 20:50:08 UTC 2013


Author: pjd
Date: Mon Feb 25 20:50:08 2013
New Revision: 247283
URL: http://svnweb.freebsd.org/changeset/base/247283

Log:
  After r237012, the fdgrowtable() doesn't drop the filedesc lock anymore,
  so update a stale comment.
  
  Reviewed by:	kib, keramida

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Mon Feb 25 20:31:47 2013	(r247282)
+++ head/sys/kern/kern_descrip.c	Mon Feb 25 20:50:08 2013	(r247283)
@@ -855,9 +855,7 @@ do_dup(struct thread *td, int flags, int
 	/*
 	 * 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) {


More information about the svn-src-head mailing list