Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2140359imm; Thu, 11 Oct 2018 05:53:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV63JdGn4TF2bjBNBiFBNnd67FF74qz83jGg3LrfFg59119A1ZPvlahnsTwmo+vEi7DMNvuBx X-Received: by 2002:a17:902:a40c:: with SMTP id p12-v6mr1480562plq.165.1539262397526; Thu, 11 Oct 2018 05:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539262397; cv=none; d=google.com; s=arc-20160816; b=axtla2kVGEOqrLpvCzuebOINauvwFykpO/RLf2UnVs2nCbYxk3BLnT5s5Dt/OrkPZJ uYdvtbCUc1vCgox1Sq/9inZFkuwrxwLdIG1z79hxgLQo4QshrJVDbZQ3zYCBe768UKEB 2qdQUOoqKtFuhen9PgMyxZsIxrAR+qH+7eD/EIKKl40RjqAq4Vt2Ezlk8uqb/yis08u3 A0vaacjggUX7zDhODvR/HTkLLqoAQlK+dMAAGQInGHG0fBvaDmUGEPAVGXojZPrlIuCG N+nhcl9v7ltvGLPvXf6ufD3rGn7rAO+l/93mJb0ntHKWPCYIl3mV2WqPQ1WuLYgCk1cs 9+7Q== 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; bh=4IblOP6zdeN56LIf61uMRmoN7hn0NbWV8WuZIRNgg1Y=; b=WrXXE2CpGQ+J65VfXM4ewG+o9QNndibvAFbdc3zDKgYEvV8vL60hWhO3WHgwgEsMH4 wcb8jERTjW7fe8ID4aQ6BvCKGIRLI8S9fZyzf75tgQgYQ209x0vvwKIeEReeyZ+kmZIz YNs9/aYxtNY7bmYSZKH/ZLX8vl+/yL8/A2FCW+MyNIwdm56MFyVikQOXlx9xLZxx795O PdOywa8519GisFduAjpUtIrv933KkTCA+/W2u8XxkTjI92ihS7DTD1kAKGuFygBhSYm5 ZsDYcHmXrf0prTIDwTLwKcPoJy1n1UJlzznyIC/tQd1rPu34v0uDzYn9qA8LRlwakLfo 6nhw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i1-v6si27784737pfo.189.2018.10.11.05.53.02; Thu, 11 Oct 2018 05:53:17 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728074AbeJKT3I (ORCPT + 99 others); Thu, 11 Oct 2018 15:29:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:44118 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727182AbeJKT3I (ORCPT ); Thu, 11 Oct 2018 15:29:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 20EFAACE1; Thu, 11 Oct 2018 12:02:11 +0000 (UTC) Date: Thu, 11 Oct 2018 14:02:09 +0200 From: Michal Hocko To: "Kirill A. Shutemov" Cc: Joel Fernandes , linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@android.com, minchan@google.com, hughd@google.com, lokeshgidra@google.com, Andrew Morton , Greg Kroah-Hartman , Kate Stewart , Philippe Ombredanne , Thomas Gleixner Subject: Re: [PATCH] mm: Speed up mremap on large regions Message-ID: <20181011120209.GV5873@dhcp22.suse.cz> References: <20181009201400.168705-1-joel@joelfernandes.org> <20181009220222.26nzajhpsbt7syvv@kshutemo-mobl1> <20181009230447.GA17911@joelaf.mtv.corp.google.com> <20181010100011.6jqjvgeslrvvyhr3@kshutemo-mobl1> <20181011004618.GA237677@joelaf.mtv.corp.google.com> <20181011081719.77f7ihcy6mu2vkkc@kshutemo-mobl1> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181011081719.77f7ihcy6mu2vkkc@kshutemo-mobl1> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 11-10-18 11:17:19, Kirill A. Shutemov wrote: [...] > > The thing is its quite a lot of change, I wrote a coccinelle script to do it > > tree wide, following is the diffstat: > > 48 files changed, 91 insertions(+), 124 deletions(-) > > > > Imagine then having to add the address argument back in the future in case > > its ever needed. Is it really worth doing it? > > This is the point. It will get us chance to consider if the optimization > is still safe. > > And it shouldn't be hard: [partially] revert the commit and get the address > back into the interface. I agree with Kirill. This will also remove quite a lot of pointless code and make it more clear. It is impossible to see what is the address good for and I couldn't really trace back to commit introducing it to guess that either. So making sure nobody does anything with it is a good pre-requisite to make further changes on top. The chage itself is really interesting, I still have to digest it completely to see there are no cornercases but from a quick glance it looks reasonable. -- Michal Hocko SUSE Labs