From owner-svn-src-all@FreeBSD.ORG Wed Jun 10 12:40:00 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AB672E1; Wed, 10 Jun 2015 12:40:00 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3BD1E143F; Wed, 10 Jun 2015 12:40:00 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by wiga1 with SMTP id a1so47008128wig.0; Wed, 10 Jun 2015 05:39:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=bgYxR//ul1/tOqgmXdRnFPaH29MUFp3j9vGMD0BNA4I=; b=p2++jogjKIlnxPrZ+hIIUmSPSotz25IwuwyAQtMEvXIVh4l51gCcdM9JJS5dxMzVo2 A+huH39CDYE7l1+3VkuASfkF/eng5has+5DofV3r2d8dGdfBWoLL9bmqFhyhAwP6hkhk gfRopujowedPlynkpoxZdDcnGGUPIgamOIfirfYc84MInu1/YS1g13w3hyqVsUrrcJB/ 7m3hWynVSk/A8NCkBLSds0LWCQ+4MnV3nmy4UcIxLUINKI04hWvJRvu/S+9ZAOGZagpg qpNwlcl9/XKXxHpFcxHaZye1Y3JbL3o0gMju5rPu8lg+H7jrwqzkUTEzDw/5CjBeSIqA C8bA== X-Received: by 10.181.13.5 with SMTP id eu5mr18121462wid.37.1433939998502; Wed, 10 Jun 2015 05:39:58 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id gj7sm7798289wib.4.2015.06.10.05.39.55 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 10 Jun 2015 05:39:56 -0700 (PDT) Date: Wed, 10 Jun 2015 14:39:53 +0200 From: Mateusz Guzik To: Ivan Klymenko Cc: Mateusz Guzik , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r284215 - in head/sys: amd64/linux32 compat/linux compat/svr4 dev/drm2/i915 fs/fdescfs i386/ibcs2 i386/linux kern ofed/drivers/infiniband/core ofed/drivers/infiniband/hw/mthca sys vm Message-ID: <20150610123953.GB23380@dft-labs.eu> References: <201506101048.t5AAmD1O029382@svn.freebsd.org> <20150610151613.1176c1e3@nonamehost.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150610151613.1176c1e3@nonamehost.local> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 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: Wed, 10 Jun 2015 12:40:00 -0000 On Wed, Jun 10, 2015 at 03:16:13PM +0300, Ivan Klymenko wrote: > Wed, 10 Jun 2015 10:48:13 +0000 (UTC) > Mateusz Guzik написав: > > > Author: mjg > > Date: Wed Jun 10 10:48:12 2015 > > New Revision: 284215 > > URL: https://svnweb.freebsd.org/changeset/base/284215 > > > > Log: > > Implement lockless resource limits. > > > > Use the same scheme implemented to manage credentials. > > > > Code needing to look at process's credentials (as opposed to > > thred's) is provided with *_proc variants of relevant functions. > > > > Places which possibly had to take the proc lock anyway still use > > the proc pointer to access limits. > > > /usr/src/sys/modules/linux64/../../amd64/linux/linux_machdep.c:254:16: error: incompatible pointer types passing 'struct proc *' to parameter of type 'struct thread *' [-Werror,-Wincompatible-pointer-types] > lim_cur(p, RLIMIT_STACK); > ^ > /usr/src/sys/sys/resourcevar.h:133:32: note: passing argument to parameter 'td' here > rlim_t lim_cur(struct thread *td, int which); > ^ Oops, thanks. Fixed in r284217. -- Mateusz Guzik