Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139Ab1EMERw (ORCPT ); Fri, 13 May 2011 00:17:52 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:57250 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751125Ab1EMERv (ORCPT ); Fri, 13 May 2011 00:17:51 -0400 MIME-Version: 1.0 In-Reply-To: References: <20110513025013.GA13209@mail.hallyn.com> From: Linus Torvalds Date: Thu, 12 May 2011 21:16:58 -0700 Message-ID: Subject: Re: acl_permission_check: disgusting performance To: "Eric W. Biederman" Cc: "Serge E. Hallyn" , "Serge E. Hallyn" , Daniel Lezcano , David Howells , James Morris , Andrew Morton , Linux Kernel Mailing List , containers@lists.linux-foundation.org, Al Viro Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 687 Lines: 17 On Thu, May 12, 2011 at 8:52 PM, Eric W. Biederman wrote: > > In any event an inline version of current_user_ns that returns > init_user_ns in the case where user namespaces aren't compiled in should > fix the immediate performance problems by allowing the compiler to > optimize them out. Yes. However, then Serge's patch in the next email immediately breaks that optimization ;^( Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/