From owner-cvs-src@FreeBSD.ORG Wed Aug 27 17:52:24 2003 Return-Path: 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 C4B7316A4BF; Wed, 27 Aug 2003 17:52:24 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 022B743FBF; Wed, 27 Aug 2003 17:52:24 -0700 (PDT) (envelope-from jeff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7S0qN0U040156; Wed, 27 Aug 2003 17:52:23 -0700 (PDT) (envelope-from jeff@repoman.freebsd.org) Received: (from jeff@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7S0qNtA040155; Wed, 27 Aug 2003 17:52:23 -0700 (PDT) Message-Id: <200308280052.h7S0qNtA040155@repoman.freebsd.org> From: Jeff Roberson Date: Wed, 27 Aug 2003 17:52:23 -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/gnu/ext2fs fs.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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, 28 Aug 2003 00:52:25 -0000 jeff 2003/08/27 17:52:23 PDT FreeBSD src repository Modified files: sys/gnu/ext2fs fs.h Log: - In LCK_BUF() simply change the owner of the buf to the kernel. - In ULCK_BUF we no longer need to acquire the lock, just write the buf out. - The combination of these changes eliminates one more use of B_LOCKED which is in the way of making the buffer cache SMP safe. In the long term ext2fs should probably not try to optimize the use of their metadata bufs with a private cache. This will starve the rest of the system for buffers in the extreme case. Discussed with: bde (A long time ago..) Tested on: md disk/x86 Revision Changes Path 1.14 +2 -10 src/sys/gnu/ext2fs/fs.h