From owner-cvs-src@FreeBSD.ORG Mon Apr 23 18:08:59 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EFC2B16A400; Mon, 23 Apr 2007 18:08:59 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id E342513C44C; Mon, 23 Apr 2007 18:08:59 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3NI8xEf008492; Mon, 23 Apr 2007 18:08:59 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3NI8x0h008491; Mon, 23 Apr 2007 18:08:59 GMT (envelope-from jhb) Message-Id: <200704231808.l3NI8x0h008491@repoman.freebsd.org> From: John Baldwin Date: Mon, 23 Apr 2007 18:08:59 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/kern vfs_syscalls.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2007 18:09:00 -0000 jhb 2007-04-23 18:08:59 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern vfs_syscalls.c Log: MFC: Don't go to a whole lot of extra work to handle the race where the new file descriptor is closed out from under us in kern_open(). This race is already handled and the file will be closed when kern_open() does an fdrop just before returning. In addition, by handling the race early, this opens the code up to an obscure bug where opening a devfs file could replace f_ops in the file object so that fdrop() will try to close the vnode, but f_vnode never gets set, so the vnode close routine panics due to the NULL f_vnode. Revision Changes Path 1.392.2.18 +2 -25 src/sys/kern/vfs_syscalls.c