Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2716520ybk; Mon, 18 May 2020 06:21:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcL55tY/q9PJbO+sWt+5bRDWjEY1boI55NyNxFlBygPIN0z3SBEqG2qOiqGq8fxA+i1nrt X-Received: by 2002:a17:906:d10d:: with SMTP id b13mr9037320ejz.87.1589808101624; Mon, 18 May 2020 06:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589808101; cv=none; d=google.com; s=arc-20160816; b=wBFIjXYHNnKQrsKYKmbBVLpNlZGI0VZizPlgkPPbDjBD1a8XcTjtT6E8piMgzuiMj6 r4pKwPx/5UK6bteXMIdjX/oCWl8tQVez9KP40o/JU1MuZSlcQiYzpndzVa2yqtPKlX8u ehQixgB8n06t9VKlR5ElCnEuVUUI59G1kJ6qmazh8T30PszNgqDkjFXmd4JXQd5jCg3Z Pu0t2tPgucpa+kJj4Ry/hwN0WGVhlphjgqK/oKsoebrfkIBlgApZo4HcVMSEY8QOeYRP 1vMd62Qss3akJxszwBQZQW2jNdsrIxNwwVkgoNTQquqdxTs4kcr0OwLl2PYKNUua2BGD 8/og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=E3Tr5gjGBXVdmX/pqhdzujxsTx2RUWtLTrgB/ecvEKs=; b=OcLt3+Gf0V+WaN66xmywCqvRET2JKsMuaW7suSjeeWZfAgok650YHtAxEOOiLo8JOe sWS/utKe1t3G0AFboJw3PkeDvceL1xrytVJvL9s8Y2q98L1F97jW3IacrI2gzTxiB4+Y QH8O0VV7GCbXXBofl+XaAt916FXtsPgICcABw6iWyZpKAXKwl6atQTYx5uOoUjWE5itB 3QzfcuXCarvm4hyUu0P97GoHdSwRgVsptiezyZJAkJmXE8/hNDzYhjYtQl5ZWfvbRw3Y lZPgdfJvEv50swThjVFaKRXZl5GH1Yfq6aSbhLnwgUiZxneVQKGVVC9vRyVnITSkKgnv FoHA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m30si6992501edb.193.2020.05.18.06.21.18; Mon, 18 May 2020 06:21:41 -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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727955AbgERNTo (ORCPT + 99 others); Mon, 18 May 2020 09:19:44 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37096 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727857AbgERNTk (ORCPT ); Mon, 18 May 2020 09:19:40 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04ID41Rg048222; Mon, 18 May 2020 09:19:31 -0400 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 31292e683m-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 09:19:30 -0400 Received: from m0098393.ppops.net (m0098393.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 04ID4Hbw049355; Mon, 18 May 2020 09:19:30 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 31292e6831-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 09:19:30 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 04IDFZKe007011; Mon, 18 May 2020 13:19:27 GMT Received: from b06avi18626390.portsmouth.uk.ibm.com (b06avi18626390.portsmouth.uk.ibm.com [9.149.26.192]) by ppma05fra.de.ibm.com with ESMTP id 3127t5hpg8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 18 May 2020 13:19:27 +0000 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06avi18626390.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 04IDIDoW61145520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 May 2020 13:18:13 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38D2442042; Mon, 18 May 2020 13:19:25 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 43BF742041; Mon, 18 May 2020 13:19:24 +0000 (GMT) Received: from pomme.local (unknown [9.145.67.24]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Mon, 18 May 2020 13:19:24 +0000 (GMT) Subject: Re: [PATCH v5 02/10] MMU notifier: use the new mmap locking API To: Michel Lespinasse , Andrew Morton , linux-mm Cc: LKML , Peter Zijlstra , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , Davidlohr Bueso , David Rientjes , Hugh Dickins , Ying Han , Jason Gunthorpe , Daniel Jordan , Davidlohr Bueso References: <20200422001422.232330-1-walken@google.com> <20200422001422.232330-3-walken@google.com> From: Laurent Dufour Message-ID: <4e68719f-2b4f-307b-f29f-e1858efc409a@linux.ibm.com> Date: Mon, 18 May 2020 15:19:24 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200422001422.232330-3-walken@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-18_06:2020-05-15,2020-05-18 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 impostorscore=0 bulkscore=0 priorityscore=1501 mlxlogscore=999 mlxscore=0 suspectscore=0 spamscore=0 malwarescore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005180117 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 22/04/2020 à 02:14, Michel Lespinasse a écrit : > 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 Reviewed-by: Laurent Dufour > --- > 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); >