Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Feb 2013 20:50:08 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r247283 - head/sys/kern
Message-ID:  <201302252050.r1PKo8BO016717@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302252050.r1PKo8BO016717>