Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp454974ybg; Tue, 9 Jun 2020 05:08:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb2DOF8qsuwhJpH0Fk/XK3AZTcOQSHBJoR/08abxFMOmPll1ei7MvmvQaVJl0nfLgbmP+4 X-Received: by 2002:a05:6402:52:: with SMTP id f18mr26853380edu.7.1591704532716; Tue, 09 Jun 2020 05:08:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591704532; cv=none; d=google.com; s=arc-20160816; b=ZKFfTvpKdxukuCDI0OwK5MiIXhSwMZc0SvkXM30kbBY9NzhBxlwB2saTPHzPqpi5KR B40I9lFMZmYJiDetAhk3VTYhZ2K0jJrMkwoxKQBpls3U4Wt5VntWrNaVL848fUSdE8jP zu+FV0C1Vspw0+rHjSKCPM6Kn11MczFdileigeiLUkmEWj3ZneDuULsstJvJfMbFrDas EWYq+rWmqGs/Zk4nVm7+kS4jO8akPEZczxgpI5mbv0hyN8dv+CwLNra3SwxDg1P+jLp0 Th/Twqg/ye+Zezw9iF+8jg9drPj0ipdXcHE1JYfAtBiQvB2hQKYXj2BLk/ebfKHT8Ern jIWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+o3Kw7ohvoYTBR2Cc3NZXYoBJAf9G4BYqcUbSQGVHaU=; b=GpbW05+BV1QSraY60N+UmJVjwkpUUMmw1/35T7EgIl1S+1fIB1sDTLEWDambenR2DD n3R1zLZOulbpFAda/yy8Nqaa6sGHO47FCqRX50kyPXHAKUMZW3/urofxyAbkRIw4FM/h D2MgUbB2urXeo3XKbozgS8ThfmfdEJcXNTOiHLBjcdW2jEVRm78UMj7qjAsZVyU0OGmX T5jPBN6kx0jK3bnTCc1UWE+5g2/Es6vd4bI+lq4l5O9aZuoXrCcVbd4nlLyIsB684x8k nbMLK+J+axAvGRhK5jPHKc41h455rouQt/VOB9JECFL/OGUSGhVnlXAJIO7/GEzONMhD LQPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e7si10339368ejx.291.2020.06.09.05.08.28; Tue, 09 Jun 2020 05:08:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729192AbgFIMDe (ORCPT + 99 others); Tue, 9 Jun 2020 08:03:34 -0400 Received: from mail-ej1-f67.google.com ([209.85.218.67]:36362 "EHLO mail-ej1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729084AbgFIMDd (ORCPT ); Tue, 9 Jun 2020 08:03:33 -0400 Received: by mail-ej1-f67.google.com with SMTP id dr13so2866997ejc.3 for ; Tue, 09 Jun 2020 05:03:32 -0700 (PDT) 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; bh=+o3Kw7ohvoYTBR2Cc3NZXYoBJAf9G4BYqcUbSQGVHaU=; b=s2AAUV3gE6Cj7UqDrkiC9cJneUnezRdoDDwjT39LlWDyOMxBS90zXFr515mFP7AQYU G4pavcIqb8xasJ7jS7csvlvdIodTkp9QeCq9ugIyQU5H4vR92PE+0bF7HhjxOaQfkPDH QaHa8w0a8pHgxr+2b1tHSXR1J7myn7o+Q/eJwA5lAwN2co37a3LE714FqXcQEeYyIPZi sIM5GLG39xpFyqHqyAiQC0Lxz+KJCQyI/2zOYLExZHR6/MwvKcXFlzqYgWfy06UgnaA/ ex0vZXAlx+Zyq/zbxNThbmqS0Tp3E++Xb9qnGJUN5GQcc21O76qpSXoEbc9Fj2HSyREL wfbw== X-Gm-Message-State: AOAM531C047eBvCGo72ccjEQIK9dvnhEOAwNo9bNyQjCtmVc+O7XiLmB Dcv921glrEm9UlEuuTDwO2pKmch+ X-Received: by 2002:a17:906:5e07:: with SMTP id n7mr2496670eju.48.1591704211892; Tue, 09 Jun 2020 05:03:31 -0700 (PDT) Received: from localhost (ip-37-188-174-195.eurotel.cz. [37.188.174.195]) by smtp.gmail.com with ESMTPSA id w13sm13442356eju.124.2020.06.09.05.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2020 05:03:30 -0700 (PDT) Date: Tue, 9 Jun 2020 14:03:28 +0200 From: Michal Hocko To: Michel Lespinasse Cc: Andrew Morton , linux-mm , LKML , Peter Zijlstra , Laurent Dufour , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , Davidlohr Bueso , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan , John Hubbard Subject: Re: [PATCH v6 00/12] Add a new mmap locking API wrapping mmap_sem calls Message-ID: <20200609120328.GB22623@dhcp22.suse.cz> References: <20200520052908.204642-1-walken@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200520052908.204642-1-walken@google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue 19-05-20 22:28:56, Michel Lespinasse wrote: > Reposting this patch series on top of v5.7-rc6. I think this is ready > for inclusion into the -mm tree; however there were some minor points > of feedback to address and also it was easier to regenerate a full > version after the v5.5 (only updating patches 09/10 and 10/10) caused > some confusion. > > > This patch series adds a new mmap locking API replacing the existing > mmap_sem lock and unlocks. Initially the API is just implemente in terms > of inlined rwsem calls, so it doesn't provide any new functionality. > > There are two justifications for the new API: > > - At first, it provides an easy hooking point to instrument mmap_sem > locking latencies independently of any other rwsems. > > - In the future, it may be a starting point for replacing the rwsem > implementation with a different one, such as range locks. This is > something that is being explored, even though there is no wide concensus > about this possible direction yet. > (see https://patchwork.kernel.org/cover/11401483/) Sorry that I am jumping late to the game. Even though I hoped that the new API would somehow start using a concept of address ranges, because I believe this is a fundamental lock granularity for this mmap_sem, this is definitely a step in the right direction. Getting rid of all direct usage of mmap_sem is an improvement in itself. Feel free to add Acked-by: Michal Hocko Thanks! -- Michal Hocko SUSE Labs