From owner-svn-src-all@FreeBSD.ORG Mon Nov 3 10:34:51 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 370013C4; Mon, 3 Nov 2014 10:34:51 +0000 (UTC) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 772D4B78; Mon, 3 Nov 2014 10:34:50 +0000 (UTC) Received: by mail-wi0-f169.google.com with SMTP id n3so5659021wiv.4 for ; Mon, 03 Nov 2014 02:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=1ne6YM2NKbl926GMCuZNk7Knjv0cO3ovDqOKMqVaIEw=; b=tagCpu3arV8KaMLMQuXMYsxKHj1vRfVQHDPt/mLPnuUmdRbBQ80MQwbsK+Fd6sZvU+ d/FAYe3T+KmNOGAvrqD3APhtMv99AR/gQFg7WtSbZOoAOacdDJRpht83x6hpQrhZg1Tg XnXX3B7H4nXp64rDXIO4B8fJ/mAYJFVs2PpFqkwTPlxyhg17U7V9x/hFuyh4MYKqQapi UH5vhVpHVl/pSXEr+cFQeOSmBBrSMvMpj5GwYByo1Wio9ttusXbKF+n1b4mt/F60mqlR u2T1NERmqBNeOBtJNjg4PYsblMhM5l8E0unZ7S9jqHbApangYtnjhm2VHUTw6oQP851l H6nw== MIME-Version: 1.0 X-Received: by 10.180.19.234 with SMTP id i10mr15653509wie.28.1415010888689; Mon, 03 Nov 2014 02:34:48 -0800 (PST) Reply-To: attilio@FreeBSD.org Sender: asmrookie@gmail.com Received: by 10.217.69.73 with HTTP; Mon, 3 Nov 2014 02:34:48 -0800 (PST) In-Reply-To: <20141102224934.GG53947@kib.kiev.ua> References: <20141102163728.GX53947@kib.kiev.ua> <20141102165916.GY53947@kib.kiev.ua> <20141102174958.GZ53947@kib.kiev.ua> <20141102191029.GA53947@kib.kiev.ua> <20141102213819.GF53947@kib.kiev.ua> <20141102224934.GG53947@kib.kiev.ua> Date: Mon, 3 Nov 2014 11:34:48 +0100 X-Google-Sender-Auth: IOn3XVqAiyy0Aj7669g1-nwZYAs Message-ID: Subject: Re: svn commit: r273966 - in head: share/man/man9 sys/kern sys/sys From: Attilio Rao To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Cc: "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2014 10:34:51 -0000 On Sun, Nov 2, 2014 at 11:49 PM, Konstantin Belousov wrote: > On Sun, Nov 02, 2014 at 11:37:57PM +0100, Attilio Rao wrote: >> On Sun, Nov 2, 2014 at 10:38 PM, Konstantin Belousov >> wrote: >> > On Sun, Nov 02, 2014 at 10:17:26PM +0100, Attilio Rao wrote: >> >> I think that your initial patch (what is in head now) is a better approach. >> >> I would just make it a lockinit() flag to make it less alien to the KPI. >> >> >> > >> > Ok. >> > >> > Can you explain what would the proposed lockinit() flag do ? What should >> > it change comparing with the current code ? >> >> You now provide LK_NODDLKTREAT on a call basis. >> The lockinit() flag would embed this into the lock attribute and make >> it always real, without the need for the callers to provide >> LK_NODDLKTREAT on a call basis. > > Am I reading your proposal right ? Do you mean, that for all vnodes, > I should disable exclusive starvation avoidance at all ? I completely > disagree with this. No, I'm saying that we should support doing this at the KPI level. Not that you should enable this for all the vnodes. Attilio -- Peace can only be achieved by understanding - A. Einstein