Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3897021ybz; Mon, 20 Apr 2020 11:26:22 -0700 (PDT) X-Google-Smtp-Source: APiQypIozyf9LYVXMCZ8dzKqW+oc6qQNFFSZ9m3IqDF0Jf+XA044PqL0Ht0tnu0iTa5s1k/45t5v X-Received: by 2002:a05:6402:17a7:: with SMTP id j7mr15740742edy.334.1587407182268; Mon, 20 Apr 2020 11:26:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587407182; cv=none; d=google.com; s=arc-20160816; b=LkF6aYUeB/WpypHiLS0EQC5i5p5m/jAPbxyMdMMu4x2iO854Ppjf5W3JCgzjfkeiBP yhcpAZBxx+FvYTbgtLRR4qJWFRYWfqNbbAS7q0zm+G+1pq3/tD8RjEp7NeRYGU8nfvt2 Rmlsv94rfT24YnB20vG2RZqDFDpUNnFwofH4EYgX5K363WmrC3EBqSHLh4uSM3siJ9pt ou1mbzagFoQm5clfopgqLyUYPsoOPRgDS87mgwF0zH0MrkC93IPV9MRWqTc/SiYr1Gvw /v6xe29B2dzitNaXKYH8Rbz26VC484ccrBKo2N8d9R2h0liTIr3CVwwqssdAeXMjr44U Lcsg== 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=jvjkxrDdmptxS1q0Le2xfIoqgHYOekR9qgvmwectAZM=; b=UBNFH47TDjEHYJThfijzFptPzz/lv0L+JGw68xz4HCZwHuc37/BiOaMGW+poQ2edU0 n58b2z9HT8GlLlvsslarHQ5+uDVs+ft0bGP7m3sOabjhjNXlyMjbcZWZbh8mtk9t1oNs WsOq0BWspD8sPqlzE8bTF4eUsiMU42InGDuccaboTKcRxIXjc9j+delRzoD0HpA0IfEi xxUgN4aYm6qokOzU8cg9tEDG0XXj317aAGqYdbC1+6f5tzcUPny5cSpVeq6PLE4VlZvv AdgwcxMopCHSmEsWpbqhcpRELoqEpV02A9aYK3LrYC7cnc7wxWL9QjSmZ7Fap45hXVTz futg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=s7LxrMSI; 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.25.56; Mon, 20 Apr 2020 11:26:22 -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=s7LxrMSI; 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 S1727009AbgDTSY5 (ORCPT + 99 others); Mon, 20 Apr 2020 14:24:57 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:49930 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgDTSY5 (ORCPT ); Mon, 20 Apr 2020 14:24:57 -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 03KIIJ7C103946; Mon, 20 Apr 2020 18:24:45 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=jvjkxrDdmptxS1q0Le2xfIoqgHYOekR9qgvmwectAZM=; b=s7LxrMSIrPP/F0hmRBYkRj9P6xB50xCGzw9PeJTY+RScGUa50hRZzRQw1oj0pAqytnFR 5KAMdQzHiTaUe5zDmrWh8UEl7GZadw7Yk45gxQKonB+vxM8134IWZ3Eq43t/A8fhcQJw IKmLV+EABru3k8AsJZGeQlVP3NuRBf6bzkPdltmFKAPIsfJXT6WqMS0QL306I3SAvYfu ngiT+aq80qZKwFs4g6eQ6dSudsaRgw3kwf/+gHaZ+EhINRDD2FY78tqiyneJeN/EZlI5 ZnYf10zvmLoVYJ8A5xDxRpGWJUZS9wgMBzdGBi0ofdvec3O0bf5OAXeR77WbmjkXK55o pQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 30grpgdc4v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Apr 2020 18:24:45 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 03KICA5D007585; Mon, 20 Apr 2020 18:22:44 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 30gb1du67e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 20 Apr 2020 18:22:44 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 03KIMhTq021490; Mon, 20 Apr 2020 18:22:43 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:22:42 -0700 Date: Mon, 20 Apr 2020 14:23:02 -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 08/10] mmap locking API: add MMAP_LOCK_INITIALIZER Message-ID: <20200420182302.bzn376dnxyiipcta@ca-dmjordan1.us.oracle.com> References: <20200415004353.130248-1-walken@google.com> <20200415004353.130248-9-walken@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200415004353.130248-9-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 phishscore=0 suspectscore=0 spamscore=0 mlxlogscore=728 mlxscore=0 malwarescore=0 bulkscore=0 adultscore=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=779 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:51PM -0700, Michel Lespinasse wrote: > Define a new initializer for the mmap locking api. > Initially this just evaluates to __RWSEM_INITIALIZER as the API > is defined as wrappers around rwsem. Shouldn't this take mm as the argument like the other stuff in mmap_lock.h?