Message ID | 20230907174705.2976191-3-willy@infradead.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA302EC8743 for <linux-mm@archiver.kernel.org>; Thu, 7 Sep 2023 17:47:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 10B7F8D0002; Thu, 7 Sep 2023 13:47:23 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 0BBC58D0005; Thu, 7 Sep 2023 13:47:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E7B538D0002; Thu, 7 Sep 2023 13:47:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id D88E38E0001 for <linux-mm@kvack.org>; Thu, 7 Sep 2023 13:47:22 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 83946140F83 for <linux-mm@kvack.org>; Thu, 7 Sep 2023 17:47:22 +0000 (UTC) X-FDA: 81210533124.12.9B565C4 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf28.hostedemail.com (Postfix) with ESMTP id 7ABA2C0014 for <linux-mm@kvack.org>; Thu, 7 Sep 2023 17:47:20 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="DV83kF/e"; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694108840; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=VXFBeiZYZLxdE1EgCNB8C70Cr3AOFx9IwJaa1llihbg=; b=R+F9+lY3liakNlaNjjG99BNJm0t2M8c59+P/wemffRAWmLErhWFwjAhldCgVrXDOWXJ1kM jSBaWdpPtfMEj7xVhNxeUmocWRQ7AHkVh9RSAyxQ9GVpnv301GL1N9tCnm2+YkZvjSbfot Q04tFTxOWAaRstSBMRqsEF628i6uYSM= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=pass header.d=infradead.org header.s=casper.20170209 header.b="DV83kF/e"; spf=none (imf28.hostedemail.com: domain of willy@infradead.org has no SPF policy when checking 90.155.50.34) smtp.mailfrom=willy@infradead.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694108840; a=rsa-sha256; cv=none; b=vZXJwS2Y2478fVv34mQUOoMXamotFir84gUiv5/d7FZs8pSpEv8+clJ6EKae1hN1Isiazx q3g+QOq9xWmTjtMEhNdfI5Zc5Rpvtc3WMl1XX/lFJu2zdDbDcXlvCkEBrNkNdyU9+VFonB aGJN8W1pztfornNOXBWHtQUinW/viaw= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=VXFBeiZYZLxdE1EgCNB8C70Cr3AOFx9IwJaa1llihbg=; b=DV83kF/eITv9Kv5OQQmtmcXh4s aLB2PI2hxlu4An2NjCFMYLMGM0Yuq/dEbT1Zmb9aJ4Xc9KSmRjqtBtstT/W86jThMfVSYimGMHEBG RpTPu//7Bm/ZI/jY6/+Mdekr4QY8VSy2YQChZKQFh3JEyNgS06MTdLvu4t4UQY09KSLfv7PsS6NoW Ksxmeb8/rMLRtMuq8/2lhgreBwJdoa1fxIrLHb51vg+QFQj2yu2nqRD025IPMcZM31nfpA53D+F8V A+5xrl872htBCCIDaIg+jApOm9GX39pCayQ6NfVTrWvrExjy2cfEd/jc5XIW3Rrih2yROq4N02YA9 LNCPCoDA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qeJ5w-00CUFM-0r; Thu, 07 Sep 2023 17:47:08 +0000 From: "Matthew Wilcox (Oracle)" <willy@infradead.org> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Will Deacon <will@kernel.org>, Waiman Long <longman@redhat.com> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chandan Babu R <chandan.babu@oracle.com>, "Darrick J . Wong" <djwong@kernel.org>, linux-xfs@vger.kernel.org Subject: [PATCH 2/5] mm: Use rwsem_is_write_locked in mmap_assert_write_locked Date: Thu, 7 Sep 2023 18:47:02 +0100 Message-Id: <20230907174705.2976191-3-willy@infradead.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230907174705.2976191-1-willy@infradead.org> References: <20230907174705.2976191-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7ABA2C0014 X-Rspam-User: X-Stat-Signature: q18bhn8ft4t9wqgf9xugb3tg311a1bcm X-Rspamd-Server: rspam01 X-HE-Tag: 1694108840-739576 X-HE-Meta: U2FsdGVkX19tfLziwK7wZYWCDIYLrnbGe8EMQ1uLKIKqbvNu2quUElTrKNHIpdRx9On+djfhRx5vpvZAVYhUSYxG69L7zneQei3aKEhjtH0G96OpwO3tjyJ2c9Qo/QoSqptEP2w01E28U7rG7w/fxy5bZ+rpIDbxHKRHeL0ov11LfhrAbR6szthrZkmp0jnHFTXxwo/Mw1yi6UlPzurl7WYR2XIrZGTJsMipMUfD/pNhjYNTPfD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ence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Remove the XFS mrlock
|
expand
|
diff --git a/include/linux/mmap_lock.h b/include/linux/mmap_lock.h index 8d38dcb6d044..0258b06668e8 100644 --- a/include/linux/mmap_lock.h +++ b/include/linux/mmap_lock.h @@ -69,7 +69,7 @@ static inline void mmap_assert_locked(struct mm_struct *mm) static inline void mmap_assert_write_locked(struct mm_struct *mm) { lockdep_assert_held_write(&mm->mmap_lock); - VM_BUG_ON_MM(!rwsem_is_locked(&mm->mmap_lock), mm); + VM_BUG_ON_MM(!rwsem_is_write_locked(&mm->mmap_lock), mm); } #ifdef CONFIG_PER_VMA_LOCK
This slightly strengthens our checks when lockdep is disabled. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> --- include/linux/mmap_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)