Received: by mail.netbsd.org (Postfix, from userid 605) id 2FCA114A222; Mon, 21 Jan 2013 09:14:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E7D2B14A21F for ; Mon, 21 Jan 2013 09:14:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id f_PDsA490T8c for ; Mon, 21 Jan 2013 09:14:02 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 49A1314A21A for ; Mon, 21 Jan 2013 09:14:01 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id DAEB0175DD; Mon, 21 Jan 2013 09:14:01 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 21 Jan 2013 09:14:01 +0000 From: "Juergen Hannken-Illjes" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20130121091401.DAEB0175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Juergen Hannken-Illjes" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: hannken Date: Mon Jan 21 09:14:01 UTC 2013 Modified Files: src/sys/kern: vfs_trans.c Log Message: Replace the rwlock based implementation with passive serialization from pserialize(9) and mutex / condvar. The fast paths (fstrans_start/fstrans_done on a file system not suspended or suspending and fscow_run with no change pending) now run without locks or other atomic operations. Suspension and cow handler insertion and removal is done with mutex / condvars. The API remains unchanged. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/kern/vfs_trans.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.