Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp323120imu; Thu, 8 Nov 2018 02:31:58 -0800 (PST) X-Google-Smtp-Source: AJdET5eQ9Q7497hqb3rf1yk50kxbRbd/vVHIR9Cf0gagwavp/4hcBtUoE1bXKNIcFvbHfruS806A X-Received: by 2002:a17:902:654a:: with SMTP id d10-v6mr3809489pln.302.1541673118197; Thu, 08 Nov 2018 02:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541673118; cv=none; d=google.com; s=arc-20160816; b=QGlWgnKzaA6a2zJn2DRGUvzLEMp44kTnMlkpahs5MxrQGW7qwslV0WWge8vjrFyhzw XZrIuVb+nje+u9giNdirpme8hmqDhixXBCU6FJqg5oNXw+rdxHvVk2UTpGxszGRQlIRJ H6ci7p+YCsKbvEevwB3y0sOayPjnZ79ynFk39lhM8b1EBaKcmvkkRWt8YPYUTKJThIf2 M0WXcrkqGpDUoAbrSzeNS8gM45CQcCtlk2Q/d0Vtxs+ACSUDvmzrBDNnRe+wOFpMgpgt VJ2k3eZob01lENU3m09S/OSRGDIXiCvX9WSvLMADFiDXtG0oLSywTQ3fGIuSgA3VpoG4 9Oaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=6zZkDMDcfH9LYKWLWL/pp2vq2v9sfVWmT4DKiPh8dco=; b=eNxhPR65vyExHzOn7vJyq55DrfiLvIVF6R549sJPoHQcIwMr/JQHnMkCZc1w/tAMw9 eIqP3KJCvF8VB5JudMJ8YqqK5mn9ORzoH6XCtK5jLLUWdKMS11Wd6wugAKdAJ0T0nrI9 tm42NEqbvWscK7tkO/J44WBcBw7cH/eqvWR6zfg8vfDO8JwC1MAL6a7n5Ye9tjiAVouc k4mSSqMLh6BLEKuaVkTgzMS+ks9BefgdtTyqdJMx0HUBc8UC7dPddphg8hA1VqaCiTKe FnLCcD4hxCNXgDEYn4HZt7/wwcDT9gNpetzANeG2dRPic0FGkgQvm3QbAHHQDB7ukQGi ov8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VwzmpFs2; dkim=pass header.i=@codeaurora.org header.s=default header.b=L3OW6tm9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8-v6si4118645pln.368.2018.11.08.02.31.42; Thu, 08 Nov 2018 02:31:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VwzmpFs2; dkim=pass header.i=@codeaurora.org header.s=default header.b=L3OW6tm9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726929AbeKHUGA (ORCPT + 99 others); Thu, 8 Nov 2018 15:06:00 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:51890 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726145AbeKHUGA (ORCPT ); Thu, 8 Nov 2018 15:06:00 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5C0EC60B26; Thu, 8 Nov 2018 10:31:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541673071; bh=nNR8psVAb4JV1kRVLgNPe5iFq7l9HGWlpM4X9CznbeY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VwzmpFs2YTBPP9SF0as1Vo67tmY2BC+o4RKADSodsRMVJlosDp3uKQR7vn/KsdEs/ 9J0aLo4nXicT94GtHszJHZNPaUHi930r0TtsfUCqvkeRDzkaEBaRWaZYwgHLQWkxCO YVc1D6GwT8fE+XTv+SA31hJ7ibbbobSGdzNrfgwg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 3644F601D7; Thu, 8 Nov 2018 10:31:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1541673070; bh=nNR8psVAb4JV1kRVLgNPe5iFq7l9HGWlpM4X9CznbeY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=L3OW6tm9Z7PvsYH2kGi//rdS2rCKL3OUkd7iASYWNex4mbTJrH/MWfSVsHqvR7jjM poaD1I+/D1s4HDouL+Z/zaokn1tt4uAkzfgmfS5D5opOAHLAHxbeWI14YP5Z3ln2FJ xEphsXkuCfpU0VbT46hTOtYXc23CqMRDF8TV4t48= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 08 Nov 2018 16:01:10 +0530 From: Arun KS To: Michal Hocko Cc: akpm@linux-foundation.org, keescook@chromium.org, khlebnikov@yandex-team.ru, minchan@kernel.org, vbabka@suse.cz, osalvador@suse.de, linux-kernel@vger.kernel.org, linux-mm@kvack.org, getarunks@gmail.com Subject: Re: [PATCH v3 4/4] mm: Remove managed_page_count spinlock In-Reply-To: <20181108101400.GU27423@dhcp22.suse.cz> References: <1541665398-29925-1-git-send-email-arunks@codeaurora.org> <1541665398-29925-5-git-send-email-arunks@codeaurora.org> <20181108083400.GQ27423@dhcp22.suse.cz> <4e5e2923a424ab2e2c50e56b2e538a3c@codeaurora.org> <20181108101400.GU27423@dhcp22.suse.cz> Message-ID: X-Sender: arunks@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-11-08 15:44, Michal Hocko wrote: > On Thu 08-11-18 15:33:06, Arun KS wrote: >> On 2018-11-08 14:04, Michal Hocko wrote: >> > On Thu 08-11-18 13:53:18, Arun KS wrote: >> > > Now totalram_pages and managed_pages are atomic varibles. No need >> > > of managed_page_count spinlock. >> > >> > As explained earlier. Please add a motivation here. Feel free to reuse >> > wording from >> > http://lkml.kernel.org/r/20181107103630.GF2453@dhcp22.suse.cz >> >> Sure. Will add in next spin. > > Andrew usually updates changelogs if you give him the full wording. > I would wait few days before resubmitting, if that is needed at all. mm: Remove managed_page_count spinlock Now that totalram_pages and managed_pages are atomic varibles, no need of managed_page_count spinlock. The lock had really a weak consistency guarantee. It hasn't been used for anything but the update but no reader actually cares about all the values being updated to be in sync. Signed-off-by: Arun KS Reviewed-by: Konstantin Khlebnikov Acked-by: Michal Hocko Acked-by: Vlastimil Babka > 0day will throw a lot of random configs which can reveal some > leftovers. Yea. Fixed few of them during v3. Regards, Arun