From owner-cvs-src@FreeBSD.ORG Thu Mar 2 13:53:56 2006 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 927BC16A422; Thu, 2 Mar 2006 13:53:56 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 470D443D46; Thu, 2 Mar 2006 13:53:54 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k22Drq5W034370; Thu, 2 Mar 2006 08:53:52 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: Jeff Roberson Date: Thu, 2 Mar 2006 08:42:36 -0500 User-Agent: KMail/1.9.1 References: <200603020550.k225oN2E007232@repoman.freebsd.org> In-Reply-To: <200603020550.k225oN2E007232@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603020842.39536.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1308/Wed Mar 1 05:13:39 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED,AWL autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/sys mount.h vnode.h src/sys/kern vfs_subr.c src/sys/ufs/ffs ffs_alloc.c ffs_extern.h ffs_snapshot.c ffs_softdep.c softdep.h src/sys/ufs/ufs ufsmount.h 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: Thu, 02 Mar 2006 13:53:56 -0000 On Thursday 02 March 2006 00:50, Jeff Roberson wrote: > jeff 2006-03-02 05:50:23 UTC > > FreeBSD src repository > > Modified files: > sys/sys mount.h vnode.h > sys/kern vfs_subr.c > sys/ufs/ffs ffs_alloc.c ffs_extern.h ffs_snapshot.c > ffs_softdep.c softdep.h > sys/ufs/ufs ufsmount.h > Log: > - Move softdep from using a global worklist to per-mount worklists. This > has many positive effects including improved smp locking, reducing > interdependencies between mounts that can lead to deadlocks, etc. > - Add the softdep worklist and various counters to the ufsmnt structure. > - Add a mount pointer to the workitem and remove mount pointers from the > various structures derived from the workitem as they are now redundant. > - Remove the poor-man's semaphore protecting softdep_process_worklist and > softdep_flushworklist. Several threads may now process the list > simultaneously. > - Add softdep_waitidle() to block the thread until all pending > dependencies being operated on by other threads have been flushed. > - Use softdep_waitidle() in unmount and snapshots to block either > operation until the fs is stable. > - Remove softdep worklist processing from the syncer and move it into the > softdep_flush() thread. This thread processes all softdep mounts > once each second and when it is called via the new softdep_speedup() > when there is a resource shortage. This removes the softdep hook > from the kernel and various hacks in header files to support it. > > Reviewed by/Discussed with: tegge, truckman, mckusick > Tested by: kris Very nice! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org