From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756675AbdJJW1Q (ORCPT ); Tue, 10 Oct 2017 18:27:16 -0400 Received: from mga07.intel.com ([134.134.136.100]:20243 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753520AbdJJW1P (ORCPT ); Tue, 10 Oct 2017 18:27:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,359,1503385200"; d="scan'208";a="1229355399" Date: Tue, 10 Oct 2017 15:27:14 -0700 From: Andi Kleen To: Andrew Morton Cc: Aaron Lu , Dave Hansen , linux-mm , lkml , Huang Ying , Tim Chen , Kemi Wang , Anshuman Khandual Subject: Re: [PATCH v2] mm/page_alloc.c: inline __rmqueue() Message-ID: <20171010222714.GE5109@tassilo.jf.intel.com> References: <20171009054434.GA1798@intel.com> <3a46edcf-88f8-e4f4-8b15-3c02620308e4@intel.com> <20171010025151.GD1798@intel.com> <20171010025601.GE1798@intel.com> <8d6a98d3-764e-fd41-59dc-88a9d21822c7@intel.com> <20171010054342.GF1798@intel.com> <20171010144545.c87a28b0f3c4e475305254ab@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171010144545.c87a28b0f3c4e475305254ab@linux-foundation.org> User-Agent: Mutt/1.9.0 (2017-09-02) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > `inline' is basically advisory (or ignored) in modern gcc's. So gcc > has felt free to ignore it in __rmqueue_fallback and __rmqueue_smallest > because gcc thinks it knows best. That's why we created > __always_inline, to grab gcc by the scruff of its neck. > > So... I think this patch could do with quite a bit more care, tuning > and testing with various gcc versions. We should just everything in the hot path mark __always_inline. -Andi