From owner-cvs-all@FreeBSD.ORG Fri Sep 19 17:21:49 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 925F416A4B3; Fri, 19 Sep 2003 17:21:49 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13A0D43FE9; Fri, 19 Sep 2003 17:21:49 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8K0LmXJ081402; Fri, 19 Sep 2003 17:21:48 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8K0LmMS081401; Fri, 19 Sep 2003 17:21:48 -0700 (PDT) (envelope-from jeff) Message-Id: <200309200021.h8K0LmMS081401@repoman.freebsd.org> From: Jeff Roberson Date: Fri, 19 Sep 2003 17:21:48 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern vfs_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2003 00:21:49 -0000 jeff 2003/09/19 17:21:48 PDT FreeBSD src repository Modified files: sys/kern vfs_subr.c Log: - In reassignbuf() don't unlock vp and lock newvp if they are the same. Doing so creates a race where the buf is on neither list. - Only vfree() in an error case in vclean() if VSHOULDFREE() thinks we should. - Convert the error case in vclean() to INVARIANTS from DIAGNOSTIC as this really should not happen and is fast to check. Revision Changes Path 1.458 +11 -6 src/sys/kern/vfs_subr.c