From owner-freebsd-fs@FreeBSD.ORG Wed Jan 9 14:47:40 2008 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7366416A417 for ; Wed, 9 Jan 2008 14:47:40 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 04F4E13C46E for ; Wed, 9 Jan 2008 14:47:39 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so298780fgg.35 for ; Wed, 09 Jan 2008 06:47:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=7FxIcbOi6PYFptfW2P94W8QiCIjb3Hl8qLrzkzc+p3s=; b=jzEKDCtCW8eqFgh7BhZLmL3LyNkhXntYdBw+ChAAI+6tFvCaCfAfkdPUiQ9AgYD2KHzEo8xMuQMlOQ2euUhb/7S1Y/BrQTCWA9B8TMnLDPYpOFbL4SJBCrtoxg96BfzlsBHU2UfUxHrGj5fV7Mve4tBHGtr8anYFWXZ/tVOuOGs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=wlqPBD6dNav1ezmjaI+YixB2QWJzgWMHXHJaO0dvzoEPGlhE75UMz1NUuA83s5DFD7EqeRfyYMSnELCu/skwrgvx2PoD2VjI2NaklYMedzEEoqBcyRZ+KWscycYFzA10XN6VKuS66CInbzPLfZ3BorLc7SWCw/Ve7cBwWmeFKDU= Received: by 10.86.66.1 with SMTP id o1mr700877fga.23.1199888375803; Wed, 09 Jan 2008 06:19:35 -0800 (PST) Received: by 10.86.28.19 with HTTP; Wed, 9 Jan 2008 06:19:35 -0800 (PST) Message-ID: <3bbf2fe10801090619x1ce5a178x1731db272c8d20fd@mail.gmail.com> Date: Wed, 9 Jan 2008 15:19:35 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: current@freebsd.org, arch@freebsd.org, fs@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 58fec5b188aea1bf Cc: Subject: [PATCH] lockmgr and VFS plans X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2008 14:47:40 -0000 Hi, as previously explained in past e-mails, lockmgr() is going to face a massive restructuration. The work is progressing on two different rails: the former involves fixing consumers code in order to make it completely implementative details agnostic, in order to make it cleaner and more robust. The latter involves giving a good replacement for current functions and a faster implementation. lockmgr() is an old primitive widely used in our VFS subsystem, so this overhaul would involve someway VFS subsystem necessarilly, in particular about the former line of development. Part of this overhaul (for this preliminary stages) consists in removing the 'thread' argument from the lockmgr() interface which also means making useless the same argument about VFS functions (vn_lock, VOP_LOCK() and VOP_UNLOCK()). This removal can be done in a 'stacked' way and can be splitted in 2 different stages: the former will clean up only vn_lock() while the latter will be more aggressive and it will involve hardly VFS, fixing VOP_LOCK1() and VOP_UNLOCK(). This patch removes the 'thread' argument from vn_lock(): http://people.freebsd.org/~attilio/vn_lock.diff What I'm looking for is: - objections to this - testers (even if a small crowd alredy offered to test this patch) I test-compiled and runned LINT with this patch and it works perfectly, but a wider audience would be better. I also would appreciate a lot if people planning to do changes to lockmgr or VFS would coordinate their efforts with me, even on small changes. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein