Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7082103imu; Wed, 14 Nov 2018 11:24:02 -0800 (PST) X-Google-Smtp-Source: AJdET5d2uLlemxIKDc65IS2zrt3MWkSsewvGUUhu0KpOpjwKgBdi8a7TfkMCz9f93qexmCWflWIP X-Received: by 2002:a63:f141:: with SMTP id o1mr2995393pgk.134.1542223442205; Wed, 14 Nov 2018 11:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542223442; cv=none; d=google.com; s=arc-20160816; b=PYZwP0Mxwh/2fG5vSdaeTXDM5VQkpX5N0k0mCb1WibsQEwGgPC0766h0kUMNfuQCpD GnDIXTXC5E76loOrJvLJVRFF7DMsRBlOoGgbUVB0qoDGz7A7gJFyt2pqZ3Jylvqbqweu 58E2IQcQA5tAYhikTjeRPVtpi7jLdsQXR0WCSMoa0KK0GTXigRdA9Pl32p/qiCxnskEn imVZzDqwsumlPOeEe7QUKBLw9ZE7dU4+kMMfTr65AXSYFpMELudHjmQDBwQui4npZ9aK AHrdgHouRXMK73WwP0jtD9g0B3Vo45CpbkgE3JX1uB/5lXl6Uud9YeOkLAgNOISNBpZw vDRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LFYYdKHWHi+EPe9Uk5KC5mUVO42vTydqmfnvlknZ67o=; b=X5vG/ck2RV71yyuHao3kyh57JufTlBMaKsqLnknJcKF6/+gbJsGA+92GFWNlZekPr4 Q5uyh4r1mcBDiQnhu3nIdDDqPfKxJthVlYpH5vTD9plZ8cd5uXIM6HHVDN23MLL9et6z /UQMm5Dh1/OktiPXb4PmItCS81Jwk5Tk7Qzv0O5nMObfZ3IYjqO7OXaI8NmKlFpaoaER K/HjCq5xPAYOKfZI9au1uDEAMZD63CA6nvvkNk+vkKa7DoS7fB12soSICCIWhGQV/7v+ o6xGTQUr/flhMDGD9V7yxyTuZGNxKHobbw5aDRPiIgoZxKKuCRl5tJOcbK45f5fWU5EI Plfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@soleen.com header.s=google header.b=ng+nwCBk; 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 k3-v6si25681690pld.25.2018.11.14.11.23.46; Wed, 14 Nov 2018 11:24:02 -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=@soleen.com header.s=google header.b=ng+nwCBk; 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 S1726625AbeKOF1n (ORCPT + 99 others); Thu, 15 Nov 2018 00:27:43 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:43616 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725757AbeKOF1n (ORCPT ); Thu, 15 Nov 2018 00:27:43 -0500 Received: by mail-qk1-f195.google.com with SMTP id r71so27826094qkr.10 for ; Wed, 14 Nov 2018 11:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=soleen.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=LFYYdKHWHi+EPe9Uk5KC5mUVO42vTydqmfnvlknZ67o=; b=ng+nwCBk/nQpv0TIg6fmdPSpwhWi9QHRDnyGByhowxwQ9gcFPWKbHJuMxQrP6JlWpP 0JMS9BDAIqnpQWcyLj2uFVBJOVadgW6Qe7Ery2jS95OnRAP/jpjifp4KsxM5RDARSYKD cuekHLCkkeLnMQlADdO67hrqqe/2bqDPNMnNw5kyMGbEoOD0LdH8qdQ1KztfMjvNRQiq WTbgGMYHClMR0/7JwcF7DPub9CE4of3jfQSeONlfmXqiqPMDMbD+nXTrafu/Fmz7R5ND gJU0pN3CwqXlhU//z09Wree83z2FNuOOsEZMELnFP7Xtzn000ONF4tUMJxpMfTVBMdly +Viw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LFYYdKHWHi+EPe9Uk5KC5mUVO42vTydqmfnvlknZ67o=; b=mvOfUwoZcTW/stC26Bdt37Qy2anLA/u5/qPggab7DdWo2OZBIeKXUgPrNDJR5PRJW0 LrHsltJgmd2ePeRMy1/u6+uXA4pc1ZbSJCc2jCEaj5eOuuMUpwnr5dkNQ7AvY/aW2mpS cYNXuw9g9gTJ0IVRyr9HEyMPleUg+kBdR+qocB/onXIwbyRIJyLZMgxnBiemu1CGjDLk Rqs5trAG2J/azpOJkBbhWCUAl6Ix03GYv2F5Snix0br2T6PlZMFJ3jpBYx1uqOjtD+lq otB2jVVnKqNtYSefE48chcy86/RZfY/I1zgyYVmLL6DXVZFN6QaB0fFKFVHDATKAKV8e u39g== X-Gm-Message-State: AGRZ1gI7w8JYUMP6Hg6pZrgKawF4Rzql7L4xv+Hv9RDe0SQ1alFUwq3+ Y7ekCT22MuZmufAULmzx6IKC2w== X-Received: by 2002:a0c:985d:: with SMTP id e29mr3219245qvd.16.1542223393957; Wed, 14 Nov 2018 11:23:13 -0800 (PST) Received: from soleen.tm1wkky2jk1uhgkn0ivaxijq1c.bx.internal.cloudapp.net ([40.117.208.181]) by smtp.gmail.com with ESMTPSA id z23sm7069081qkg.50.2018.11.14.11.23.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 11:23:12 -0800 (PST) Date: Wed, 14 Nov 2018 19:23:10 +0000 From: Pavel Tatashin To: Arun KS Cc: keescook@chromium.org, khlebnikov@yandex-team.ru, minchan@kernel.org, getarunks@gmail.com, gregkh@linuxfoundation.org, akpm@linux-foundation.org, mhocko@kernel.org, vbabka@suse.cz, linux-kernel@vger.kernel.org, linux-mm@kvack.org, vatsa@codeaurora.org, willy@infradead.org Subject: Re: [PATCH v5 3/4] mm: convert totalram_pages and totalhigh_pages variables to atomic Message-ID: <20181114192310.mleekpniomfrbibf@soleen.tm1wkky2jk1uhgkn0ivaxijq1c.bx.internal.cloudapp.net> References: <1542090790-21750-1-git-send-email-arunks@codeaurora.org> <1542090790-21750-4-git-send-email-arunks@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542090790-21750-4-git-send-email-arunks@codeaurora.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-11-13 12:03:09, Arun KS wrote: > totalram_pages and totalhigh_pages are made static inline function. > > Main motivation was that managed_page_count_lock handling was > complicating things. It was discussed in lenght here, > https://lore.kernel.org/patchwork/patch/995739/#1181785 > So it seemes better to remove the lock and convert variables > to atomic, with preventing poteintial store-to-read tearing as > a bonus. > > Suggested-by: Michal Hocko > Suggested-by: Vlastimil Babka > Signed-off-by: Arun KS > Reviewed-by: Konstantin Khlebnikov > Acked-by: Michal Hocko > Acked-by: Vlastimil Babka Reviewed-by: Pavel Tatashin