Module Name:    src
Committed By:   pooka
Date:           Wed Aug  4 14:25:16 UTC 2010

Modified Files:
        src/sys/kern: kern_descrip.c

Log Message:
Remove overzealous KASSERT: the refcount can be non-zero if another
thread attempts to use a non-open file descriptor.  from ad

fixes PR kern/43694


To generate a diff of this commit:
cvs rdiff -u -r1.203 -r1.204 src/sys/kern/kern_descrip.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/kern_descrip.c
diff -u src/sys/kern/kern_descrip.c:1.203 src/sys/kern/kern_descrip.c:1.204
--- src/sys/kern/kern_descrip.c:1.203	Thu Jul  1 02:38:30 2010
+++ src/sys/kern/kern_descrip.c	Wed Aug  4 14:25:16 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_descrip.c,v 1.203 2010/07/01 02:38:30 rmind Exp $	*/
+/*	$NetBSD: kern_descrip.c,v 1.204 2010/08/04 14:25:16 pooka Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.203 2010/07/01 02:38:30 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.204 2010/08/04 14:25:16 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -853,7 +853,6 @@
 			KASSERT(i >= NDFDFILE);
 			dt->dt_ff[i] = pool_cache_get(fdfile_cache, PR_WAITOK);
 		}
-		KASSERT(dt->dt_ff[i]->ff_refcnt == 0);
 		KASSERT(dt->dt_ff[i]->ff_file == NULL);
 		fd_used(fdp, i);
 		if (want <= fdp->fd_freefile) {

Reply via email to