Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp274641ybl; Fri, 23 Aug 2019 00:17:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1rYq8YFFAoLaU9ZGnKe3wswakA1jwiKgC6aIwGUvh+NxbPwpMfpUBTf14uXjTklifCZ9D X-Received: by 2002:a17:90a:3aaf:: with SMTP id b44mr3780484pjc.87.1566544643205; Fri, 23 Aug 2019 00:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566544643; cv=none; d=google.com; s=arc-20160816; b=JLsrSHh0/0ntD/RD+Q+hRazLRLs3UkI2z+BW3Pxju7yKdeAZwFZWK8izCX3XcGjJlp I8CVo94MnPadkBb3LLJoPWVd0Gb6bJI476L/3rCHRkrp+i9jRwRXPA0ACiHE9SjsV/hi nMfngcmRrlY8LKKTZjeGeMX4ImxsIuhGBHCElZg987ap8Tcj/gCDaT5Y/oon0aUx6Yk+ 0Nno0fqjzvJqjpknX0lqtdsbNxnh6NjET+90H/QH2/j3ksz6wC9p2VycndBbf5K+aayc X+UNl0FI8Rir4whmxKwn7xnl65/iakS/893WcIGArh0OfDGU1F8p5+CymgbFlVao7Mgv IUkg== 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=IJKyPdS7GrIq4IRncAKjgZIm9O3TBFlnZ+O2ZMuDnG0=; b=aMQIvMWB1EqJsJfpiVHMR4zYXWd8MbK4uuBtw6jkyvKSlF4uGLSeMRTlmvnlVvNo65 zztFP3K+qwUlgwLZMndjWIa2isrXXUsLCNAQFLJPj4lTsDs5bm4LvfIjaV3GJwxMLOZJ 7qsgcf4YGZMKt71lLM0nXrK8Eedfj4Iq3D6nJSSkHWbvHTXBVRFeYUSuFSRpEEpw5a8F 2uoaebYOd20rjnE330VwwZBsxK633DYcW4ZbsTjQktk4YavTd9SO5W+OS+WEmxcJlz4S HdeM7WEOc3qlg2heK6eDG9Pb1GjiZwDMpdlH1F+kUCBswgF9aujh6Y+1+FgSirINM1QT Ci+Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o31si1281020pgb.579.2019.08.23.00.17.06; Fri, 23 Aug 2019 00:17:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387413AbfHVSRO (ORCPT + 99 others); Thu, 22 Aug 2019 14:17:14 -0400 Received: from mx2.suse.de ([195.135.220.15]:58740 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725893AbfHVSRO (ORCPT ); Thu, 22 Aug 2019 14:17:14 -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 9EB42ADF0; Thu, 22 Aug 2019 18:17:11 +0000 (UTC) Date: Thu, 22 Aug 2019 11:17:01 -0700 From: Davidlohr Bueso To: Michel Lespinasse Cc: mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, akpm@linux-foundation.org, x86@kernel.org, linux-kernel@vger.kernel.org, Davidlohr Bueso Subject: Re: [PATCH 1/3] x86,mm/pat: Use generic interval trees Message-ID: <20190822181701.zhfdkjbwjh56i3ax@linux-r8p5> References: <20190813224620.31005-1-dave@stgolabs.net> <20190813224620.31005-2-dave@stgolabs.net> <20190821215707.GA99147@google.com> <20190822044936.qusm5zgjdf6n5fds@linux-r8p5> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190822044936.qusm5zgjdf6n5fds@linux-r8p5> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >On Wed, 21 Aug 2019, Michel Lespinasse wrote: >>As I had commented some time ago, I wish the interval trees used [start,end) >>intervals instead of [start,last] - it would be a better fit for basically >>all of the current interval tree users. So the vma_interval_tree (which is a pretty important user) tends to break this pattern, as most lookups are [a,a]. We would have to update most of the vma_interval_tree_foreach calls, for example, to now do [a,a+1[ such that we don't break things. Some cases for the anon_vma_tree as well (ie memory-failure). I'm not sure anymore it's worth going down this path as we end up exchanging one hack for another (and the vma_interval_tree is a pretty big user); but I'm sure you're aware of this and thus disagree. Thanks, Davidlohr