Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3969839ybz; Mon, 20 Apr 2020 12:56:32 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5DbsJ9ofwjvacxO4YOAD87/w1CVASKWZF75fPIeSeDtIa7QK/isLpRTs42RScRwxfJLX6 X-Received: by 2002:a50:d7c7:: with SMTP id m7mr3211195edj.101.1587412591918; Mon, 20 Apr 2020 12:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587412591; cv=none; d=google.com; s=arc-20160816; b=CHT8Hq/SSlYe5YBS8jtdn7x5nxDlOTx1C8MXyYEEFQSEHmXrLuaLIihy1q69laInNO yrfP/1/hmC+0po/pjanG+SLL0QYhks1gXxA0mOY1yTzwXPnh2HaZLnhhQmgbKRgzWhhG 7olO1IjTylrcekvQR9GZTqblf8UYcuMMBUCKDnyzIg3Ex8vyYMC2scvR47lb8VaW+Ye6 u3vNBejIUW7gAFIK3rJ/Z9Gf56OeV1bu4Ysp5T78r9tW0TmXA/L5T609UOa0Ky7PiBki lpZj3B5KQsCKUhwyXO9pKKULjYtEfpNz8EFF9gqO1JQUUf8FFdluuJPOtXfyBodHuJnC l/dA== 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:mail-followup-to :message-id:subject:cc:to:from:date; bh=JP4ZMlFofaZFOyktFO2t5j2sURz8ZmfbeZwA7FIupjY=; b=olWl3zwvuh2RW5WNsetWTwicpTT4/7SMQfjUQbBJotRe37JvTBCZmcmDhsrKAs+LHB EIL+Lzk7QLXdz5vpJkDGF6016iGKnsCFuykZvWIIGNWV9GTsKxYiMCHm3BrIt4e18zVp JLWvM01Mk5QlkSlBsLyAQgnhnQTQGEG3DXc3ouC1x7chmyZ2R40YtvnlMN3E0y6uUtws 4IfolnDdca+fH8Z43WFy95iIHGTYidCxEW8cwb+Qg6JlbJrTN3wLTNxAF5n4qgJfCxso A4UUcesK3uNMdJZG5GiON5T9niY3iCxd3gjEhXsocj03P+iYQR6m6alSryruiRa/QVzB Qx6g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si127361ejz.320.2020.04.20.12.56.07; Mon, 20 Apr 2020 12:56:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726161AbgDTTyn (ORCPT + 99 others); Mon, 20 Apr 2020 15:54:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:32990 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725897AbgDTTyl (ORCPT ); Mon, 20 Apr 2020 15:54:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CE4BDAB5F; Mon, 20 Apr 2020 19:54:38 +0000 (UTC) Date: Mon, 20 Apr 2020 12:51:12 -0700 From: Davidlohr Bueso To: Michel Lespinasse Cc: Andrew Morton , linux-mm , LKML , Peter Zijlstra , Laurent Dufour , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan Subject: Re: [PATCH v4 02/10] MMU notifier: use the new mmap locking API Message-ID: <20200420195112.uy7xb4d4kltp6cnz@linux-p48b> Mail-Followup-To: Michel Lespinasse , Andrew Morton , linux-mm , LKML , Peter Zijlstra , Laurent Dufour , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan References: <20200415004353.130248-1-walken@google.com> <20200415004353.130248-3-walken@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200415004353.130248-3-walken@google.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 14 Apr 2020, Michel Lespinasse wrote: >This use is converted manually ahead of the next patch in the series, >as it requires including a new header which the automated conversion >would miss. > >Signed-off-by: Michel Lespinasse >Reviewed-by: Daniel Jordan Reviewed-by: Davidlohr Bueso >--- > include/linux/mmu_notifier.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/include/linux/mmu_notifier.h b/include/linux/mmu_notifier.h >index 736f6918335e..2f462710a1a4 100644 >--- a/include/linux/mmu_notifier.h >+++ b/include/linux/mmu_notifier.h >@@ -5,6 +5,7 @@ > #include > #include > #include >+#include > #include > #include > >@@ -277,9 +278,9 @@ mmu_notifier_get(const struct mmu_notifier_ops *ops, struct mm_struct *mm) > { > struct mmu_notifier *ret; > >- down_write(&mm->mmap_sem); >+ mmap_write_lock(mm); > ret = mmu_notifier_get_locked(ops, mm); >- up_write(&mm->mmap_sem); >+ mmap_write_unlock(mm); > return ret; > } > void mmu_notifier_put(struct mmu_notifier *subscription); >-- >2.26.0.110.g2183baf09c-goog >