From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C94CEC2BA17 for ; Mon, 6 Apr 2020 18:29:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A16E92072F for ; Mon, 6 Apr 2020 18:29:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726416AbgDFS35 convert rfc822-to-8bit (ORCPT ); Mon, 6 Apr 2020 14:29:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:56644 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgDFS35 (ORCPT ); Mon, 6 Apr 2020 14:29:57 -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 91434AF85; Mon, 6 Apr 2020 18:29:54 +0000 (UTC) Date: Mon, 6 Apr 2020 09:03:56 -0700 From: Davidlohr Bueso To: Laurent Dufour Cc: Michel Lespinasse , Andrew Morton , linux-mm , LKML , Peter Zijlstra , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , David Rientjes , Hugh Dickins , Ying Han Subject: Re: [PATCH 8/8] mmap locking API: rename mmap_sem to mmap_lock Message-ID: <20200406160356.py26by67dhprte5d@linux-p48b> Mail-Followup-To: Laurent Dufour , Michel Lespinasse , Andrew Morton , linux-mm , LKML , Peter Zijlstra , Vlastimil Babka , Matthew Wilcox , Liam Howlett , Jerome Glisse , David Rientjes , Hugh Dickins , Ying Han References: <20200326070236.235835-1-walken@google.com> <20200326070236.235835-9-walken@google.com> <4eaa33a1-8144-253e-ac99-eeb354b6f871@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <4eaa33a1-8144-253e-ac99-eeb354b6f871@linux.ibm.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 Mon, 06 Apr 2020, Laurent Dufour wrote: >Le 26/03/2020 à 08:02, Michel Lespinasse a écrit : >>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. > >Since you don't change the type of the mmap_sem, it's still a >semaphore, I don't think mmap_lock is a good name. This is not a lock. Well a semaphore is still a kind of lock. I think the naming in this patch is good and generic enough. Thanks, Davidlohr