From owner-cvs-all@FreeBSD.ORG Sat Oct 4 11:03:55 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 36C6F16A4B3; Sat, 4 Oct 2003 11:03:55 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 801C443F93; Sat, 4 Oct 2003 11:03:54 -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 h94I3sXJ018720; Sat, 4 Oct 2003 11:03:54 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h94I3skP018719; Sat, 4 Oct 2003 11:03:54 -0700 (PDT) (envelope-from jeff) Message-Id: <200310041803.h94I3skP018719@repoman.freebsd.org> From: Jeff Roberson Date: Sat, 4 Oct 2003 11:03:54 -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, 04 Oct 2003 18:03:55 -0000 jeff 2003/10/04 11:03:54 PDT FreeBSD src repository Modified files: sys/kern vfs_subr.c Log: - In sched_sync() test our preconditions prior to dropping the sync_mtx. This is so that we may grab the interlock while still holding the sync_mtx. We have to VI_TRYLOCK() because in all other cases the lock order runs the other way. - If we don't meet any of the preconditions, reinsert the vp into the list for the next second. - We don't need to panic if we fail to sync here because each FSYNC function handles this case. Removing this redundant code also simplifies locking. Revision Changes Path 1.460 +18 -22 src/sys/kern/vfs_subr.c