Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3902648ybz; Mon, 20 Apr 2020 11:32:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJSKJ4I+jD7q0oSBG7u7zQGnQT7wDF//iKFxJ0lHx6sZ2xFfYCmtKZ3OV+qiZO8xgBmtaln X-Received: by 2002:a50:f298:: with SMTP id f24mr16229747edm.199.1587407565570; Mon, 20 Apr 2020 11:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587407565; cv=none; d=google.com; s=arc-20160816; b=h7nmhQmGIYOP6i7SWDQLx4dQWbOlRf3LcF/l4+z5zFBlMRzg0/y3LvSHzZYRFeRIVS y2DIyixhjRD7XY/HVBz275EBtv1rw30ITJIBEOxN7/V3uFAOp6MK8lcI991vsUCq/y2n EKdyq5GlH1w35vrrfpyvt8IOzNmyUYWe9k/z0W1ePTgbIA+HgNf4crabbbwav6FWAqtZ ZY9SfTD9ZKqa3quYRvX+te19uuezoPk1s9Qu7rWqi3b5oc8Sp6nqLYgknwpejSvWvfy2 yxtVNAU2aI599IvSl5YHbenEQasfLCL3+8U8+N28zWDtc7YKEymcRku5EYYfe7Na93LB bFoQ== 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:dkim-signature; bh=oY+flJNEcT5n1C0oC85AA3bhkX+vexhCiFlAFUbreiY=; b=OKTyec+2rR5eHwQDMtQyzdG7agD354E6Nj3AJczbNtSFN7GOR70ZbrIynFv1AY/krF JP09WZBr13QasFskSPFJu6xDMti6uo1lQfiRLDr8h7NaehRoMv4GDP0JFpKa5cX8t753 WdhvS38R8Jw0eXPEommEUvIEfcCuUirXaqiXhCbvDoe7u8fe+7WFvvIY1sdI3FnSzJuI N4MBUgDUsKFBCbKt9JYWiCcjE6Ss3vKnLgsjYkp0Il69L0qnI2uAefb79it1Yy7ipp3e 8HMFzboZoxjaq8JTzUBxV40QVpXzEg+/F0CMkXexV5UP/zJYWabnGkPJwAMqS4ffwAUb /lcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=HqCj0XD1; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w20si17331ejk.464.2020.04.20.11.32.13; Mon, 20 Apr 2020 11:32:45 -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; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=HqCj0XD1; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726748AbgDTS2m (ORCPT + 99 others); Mon, 20 Apr 2020 14:28:42 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:53146 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725784AbgDTS2m (ORCPT ); Mon, 20 Apr 2020 14:28:42 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03KIIJF1103942; Mon, 20 Apr 2020 18:28:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=oY+flJNEcT5n1C0oC85AA3bhkX+vexhCiFlAFUbreiY=; b=HqCj0XD1DIyDa6ezvrf5M7Qhg+djArOCIGKo9FEqLJj0cSy5rsviL8CjSxolT8KF05Wg q9jHpumWeAVtNoEkmVTz0+7YlVnnLgNQs9AW0LwtvpegfOqPxolG0D+lHpMM57ozA1Tq 1Y1xkEMBbUxjVLXOlQp9EfyPPkXpa2uGLnFmxvxcx6D807zheGmTHEJT8ESGbw0Dq/5P WpGKyly24uCj2cKjbWEvq8cjTun/rJMULoMImTdrg02r9vZcXFznezsjOf7HlaQz9NKQ P+dVUhUmDis90W4SU6O32GRuHd+GWE6Iih6lK5P42OlFAAhDesZS9ymd61geflsdEHLP 0A== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by userp2130.oracle.com with ESMTP id 30grpgdcr4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Apr 2020 18:28:29 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03KICPl3060800; Mon, 20 Apr 2020 18:28:29 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3020.oracle.com with ESMTP id 30gbbb9yb2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Apr 2020 18:28:29 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03KISRId026904; Mon, 20 Apr 2020 18:28:27 GMT Received: from ca-dmjordan1.us.oracle.com (/10.211.9.48) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 20 Apr 2020 11:28:27 -0700 Date: Mon, 20 Apr 2020 14:28:48 -0400 From: Daniel Jordan 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 Subject: Re: [PATCH v4 10/10] mmap locking API: rename mmap_sem to mmap_lock Message-ID: <20200420182848.lw3iwir2tgvt22bo@ca-dmjordan1.us.oracle.com> References: <20200415004353.130248-1-walken@google.com> <20200415004353.130248-11-walken@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415004353.130248-11-walken@google.com> User-Agent: NeoMutt/20180716 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9597 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 suspectscore=0 mlxlogscore=707 adultscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004200147 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9597 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=769 mlxscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 bulkscore=0 clxscore=1015 malwarescore=0 phishscore=0 spamscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004200147 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 05:43:53PM -0700, Michel Lespinasse wrote: > Rename the mmap_sem field to mmap_lock. Any new uses of this lock > should now go through the new mmap locking api. The mmap_lock is > still implemented as a rwsem, though this could change in the future. There are hundreds of stale 'mmap_sem' comments left after this. What about adding a wrapper type and leaving the name as is to avoid this? The type is called something like mmap_sem_struct. That means the lockdep/might_lock/prefetch/etc calls have to have the indirection inline, but that seems ok. The main value of the series seems to be paving the way for instrumentation, not making the type totally abstract.