From owner-freebsd-current@FreeBSD.ORG Fri Mar 3 18:04:17 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CEDB16A420 for ; Fri, 3 Mar 2006 18:04:17 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (peanut.dreadbsd.org [82.67.196.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EDD543D48 for ; Fri, 3 Mar 2006 18:04:13 +0000 (GMT) (envelope-from antoine@peanut.dreadbsd.org) Received: from barton.dreadbsd.org (localhost [127.0.0.1]) by barton.dreadbsd.org (8.13.4/8.13.4) with ESMTP id k23I49r5046300; Fri, 3 Mar 2006 19:04:09 +0100 (CET) (envelope-from antoine@peanut.dreadbsd.org) Received: (from antoine@localhost) by barton.dreadbsd.org (8.13.4/8.13.1/Submit) id k23I49TH046299; Fri, 3 Mar 2006 19:04:09 +0100 (CET) (envelope-from antoine) Date: Fri, 3 Mar 2006 19:04:08 +0100 From: Antoine Brodin To: Kostik Belousov Message-Id: <20060303190408.fab5e315.antoine.brodin@laposte.net> In-Reply-To: <20060303102644.GB37572@deviant.kiev.zoral.com.ua> References: <20060303102644.GB37572@deviant.kiev.zoral.com.ua> X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Fri, 03 Mar 2006 18:53:36 +0000 Cc: freebsd-current@freebsd.org Subject: Re: [patch] giant-less quotas X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 18:04:17 -0000 Kostik Belousov wrote: > I have developed patch to make ufs quota code working without > Giant, i.e. properly lock dquot and all around. > > You can find the patch and description of the changes at > http://kostikbel.narod.ru. Please, review. Hi, I did similar work 6 months ago but I don't have the time to work on it anymore. The patches are at: http://bsd.miki.eu.org/~antoine/quota/quota-simple.diff and http://bsd.miki.eu.org/~antoine/quota/quota-full.diff IIRC I used an sx lock because you can fault and sleep while copyin/copyout Cheers, Antoine