Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2095023ybb; Thu, 26 Mar 2020 21:50:55 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvQc1b9CTunATgI6uSgn7BcMhrF++fgk2kXPMc15FHOilqA+auSZSunZhgD79GkmkTzAeB/ X-Received: by 2002:aca:488a:: with SMTP id v132mr2863172oia.166.1585284655079; Thu, 26 Mar 2020 21:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585284655; cv=none; d=google.com; s=arc-20160816; b=wG8I6vsjUHZ7qul+7LoBwdIw2x25jIkaBLzcXiGI52w9ASA45r2uQUpaklb4V7xo6b hDzKoCVsvG+CMzBLhCXrHTePByDkcZgyY4aWNF8gPHH9WObDL8fftkBpaIyvTPcbMhH6 oqL40+ckClUUtaD2MlYavUiTzqeJsJ3ZUXbWp6jJrpSprlS0NMeeH79HJea9HtbU3Z7L kuCMJk3ITWrsJ335Ud0KeJZ4flBVy0ZACNddQvZ6T5hpuzH+QrRTM73x++r7ZR5dhaF9 7Ud8futBvZLVKskMOctgGb6oSLXLoAjMlPggofJyGE+HJ4eKiPkn7OH4ah7pmI1BEhek voVw== 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=oLhU/1RM0XnYBnWBIZIT2WM9c3SthoJL9++ubUKxIBE=; b=B1kuaNFGozGOFyW4i1Q+YgAxm7xsACVLitNpJbhLrEiCiU6WDlsYy5am/ZHGBKZ3Ta TXPcJjY9M4eqGI+J/ZsLLCUZmU7ngoCujw7YGEuOTktBN7hFK7MScU1YM1FqdSXtN+/7 /Y3VRYBRgd20v0i6v3WbuC7xCYpy5fHuUkxtXUS8qpqXHcw7BYxK42VxH3QkQnyl2c8n S8f8JB+kyp4u5jooslMeS52YW81810loD1MyDQy99lxipUMpSJ7t/qQQnxroWzK6ZmV2 ASNbfA9dr07Gw5r9BEmVFepPSJ8bFpT+Voy9b+RflQGBueT1KjD37wgdSW3fb658MVOo 1snw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si1989128oop.3.2020.03.26.21.50.42; Thu, 26 Mar 2020 21:50:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726217AbgC0EuN (ORCPT + 99 others); Fri, 27 Mar 2020 00:50:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:47406 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgC0EuM (ORCPT ); Fri, 27 Mar 2020 00:50:12 -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 99DC0AE87; Fri, 27 Mar 2020 04:50:11 +0000 (UTC) Date: Thu, 26 Mar 2020 21:48:30 -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 , Markus Elfring Subject: Re: [PATCH v2 09/10] mmap locking API: use lockdep_assert_held Message-ID: <20200327044830.qw74dvaxkjg75fh5@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 , Markus Elfring References: <20200327021058.221911-1-walken@google.com> <20200327021058.221911-10-walken@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200327021058.221911-10-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 Thu, 26 Mar 2020, Michel Lespinasse wrote: >Use lockdep_assert_held when asserting that mmap_sem is held. > >Using this instead of rwsem_is_locked makes the assertions more >tolerant of future changes to the lock type. Not opposing here, just worth mentioning that the coverage surface is greatly reduced, lockdep not being very popular in production. Thanks, Davidlohr