From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755777AbbJAHf5 (ORCPT ); Thu, 1 Oct 2015 03:35:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:50014 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751683AbbJAHfz (ORCPT ); Thu, 1 Oct 2015 03:35:55 -0400 Subject: Re: [PATCH 03/10] mm, page_alloc: Remove unnecessary taking of a seqlock when cpusets are disabled To: David Rientjes , Mel Gorman References: <1442832762-7247-1-git-send-email-mgorman@techsingularity.net> <1442832762-7247-4-git-send-email-mgorman@techsingularity.net> Cc: Andrew Morton , Johannes Weiner , Rik van Riel , Joonsoo Kim , Michal Hocko , Linux-MM , LKML From: Vlastimil Babka Message-ID: <560CE255.80303@suse.cz> Date: Thu, 1 Oct 2015 09:35:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/01/2015 12:22 AM, David Rientjes wrote: > On Mon, 21 Sep 2015, Mel Gorman wrote: >> @@ -115,6 +118,9 @@ static inline unsigned int read_mems_allowed_begin(void) >> */ >> static inline bool read_mems_allowed_retry(unsigned int seq) >> { >> + if (!cpusets_enabled()) >> + return false; >> + >> return read_seqcount_retry(¤t->mems_allowed_seq, seq); >> } >> > > I thought this was going to test nr_cpusets() <= 1? That was another patch in prior iteration of the series, but turns out it was unnecessary, because cpusets_enabled() is already only true when nr_cpusets() > 1 - see https://lkml.org/lkml/2015/8/25/300