Message ID | 20240904084022.32728-4-zhengqi.arch@bytedance.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0C971CD3431 for <linux-arm-kernel@archiver.kernel.org>; Wed, 4 Sep 2024 09:09:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7WBwKEY9MWquOlo01BPdpzLz4TZdRIsQgPATlcDwMyk=; b=UdLrdy1dQBrC4Li1JPD0fRR0y7 WeiPjPMbhBzggHcpTvPWkH+QJcO56A5Zud9nMRTAE+4oGI8ks6WsRX7bBWMMVQUQWaUCVZuGmPZoT 9u3ulu39Oa+eUPf1ZYlumMhAfMMpwdNnqcz1axTi2Yxwvu6c/iv38hgPxY2tBB1N6lmD7QuwWfVgF YyyvTgmh/r6TwpmVZbCW+EcZwA5C/g035sA+m2Fo7Iqp4GdbRLTuSbIAhbEV6w5p4FR5LN8a3klbT L0+cEjgm6WbQArNLiul612ztyLXxy4GIcQIv0GvaTo6qkiGlGyjKsnWHO2nQvIwgirt0XhY7Ddcn4 llpJPdyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1slm0a-00000003bQc-1jpN; Wed, 04 Sep 2024 09:09:00 +0000 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sllZY-00000003T3S-1Oox for linux-arm-kernel@lists.infradead.org; Wed, 04 Sep 2024 08:41:05 +0000 Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so344310a12.1 for <linux-arm-kernel@lists.infradead.org>; Wed, 04 Sep 2024 01:41:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1725439263; x=1726044063; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7WBwKEY9MWquOlo01BPdpzLz4TZdRIsQgPATlcDwMyk=; b=CM4E813Si1BJxiYTk/vShEWDvl/QCMletLVAxFkNWRUZLipJAwwXvkWBB3OgablKak E2R9r5G+2PUGUHQmn9LxgUf5CcV8qGZYnxT9kw3YiIbvmoZZeNCJO36twE64fsrz5iV4 1EE9DELcGSKbttW3MrpRcXZwllRXBs3UDZEGSEuBplGndnypG0wNRZZ45gVmxFGFZGis eYlG3nBwrA8M3TiG4ajGXxZlwn6FYMauZc8ZtljalbBGP8eUsSghZFpTemb5AqXuXQAi 7vVWhbL+rkBXO0oILdYJ3gdt0E99m1gYsmOMCmd33U/6iHLm9dHOJw3wzRK1sFGTW+i0 Wz3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725439263; x=1726044063; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7WBwKEY9MWquOlo01BPdpzLz4TZdRIsQgPATlcDwMyk=; b=v56v+A92RzS8z6VExQqg5yLXfiKqIKjQHBf8kxeTxcpA0sKeYmm1HgiFz44MD7ntay j4VuKRd1IIdForTg2wvm0h6Bxecy2c5nlMGompDX0M2u3C/M1Pya2vLu6I3axYNkGyaa j2pKjRym3jRN3CiIqQF+0I3SGIodZh1ZXUrkbBn22UsNn0Utx9/G9PWNigDzgJTzZByn JmTE3gRP9OYsZLSxsoRB+Zvg6tvOT6LoblnjLFzltcYIm1qj5b4LiT9CYc41so/6sL/f aJHOZaMwM4fsyRYGw/LywAwOhJ5UyRYHv0Ss6jyi78ZjeJp0pUqaimWENbcNv8azPzUR 5Tgg== X-Forwarded-Encrypted: i=1; AJvYcCW/caECyoADTnQv1ABl8LpOVFjqwjZQ1265lPJabdyCtalWI6j+XiEG/3xkXBeCjusYXBp26ZKSixNJSTU+1fou@lists.infradead.org X-Gm-Message-State: AOJu0YxBuQKpbu59u/fFsI7TONXWsFHVn4OP5PptAjyCUTurnW9CM8p5 cGpt2TkCgjw5prEL4eZ5h/Kow9taB6pDN7jdcigajyd0nDoG9pm2EbciHJ7sszs= X-Google-Smtp-Source: AGHT+IFosxGKKraD23O7QyExDWz973MicB0gfFUEF3j/RrDnY2sLd35727GFsppJnEl62/xkyI7W0A== X-Received: by 2002:a17:902:c412:b0:204:e471:8f06 with SMTP id d9443c01a7336-206b83566dcmr20294065ad.17.1725439263160; Wed, 04 Sep 2024 01:41:03 -0700 (PDT) Received: from C02DW0BEMD6R.bytedance.net ([139.177.225.242]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-206ae95a51csm9414045ad.117.2024.09.04.01.40.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 01:41:02 -0700 (PDT) From: Qi Zheng <zhengqi.arch@bytedance.com> To: david@redhat.com, hughd@google.com, willy@infradead.org, muchun.song@linux.dev, vbabka@kernel.org, akpm@linux-foundation.org, rppt@kernel.org, vishal.moola@gmail.com, peterx@redhat.com, ryan.roberts@arm.com, christophe.leroy2@cs-soprasteria.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, Qi Zheng <zhengqi.arch@bytedance.com> Subject: [PATCH v3 03/14] powerpc: assert_pte_locked() use pte_offset_map_ro_nolock() Date: Wed, 4 Sep 2024 16:40:11 +0800 Message-Id: <20240904084022.32728-4-zhengqi.arch@bytedance.com> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20240904084022.32728-1-zhengqi.arch@bytedance.com> References: <20240904084022.32728-1-zhengqi.arch@bytedance.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240904_014104_404824_864524FE X-CRM114-Status: GOOD ( 11.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
introduce pte_offset_map_{ro|rw}_nolock()
|
expand
|
diff --git a/arch/powerpc/mm/pgtable.c b/arch/powerpc/mm/pgtable.c index 7316396e452d8..61df5aed79894 100644 --- a/arch/powerpc/mm/pgtable.c +++ b/arch/powerpc/mm/pgtable.c @@ -398,7 +398,7 @@ void assert_pte_locked(struct mm_struct *mm, unsigned long addr) */ if (pmd_none(*pmd)) return; - pte = pte_offset_map_nolock(mm, pmd, addr, &ptl); + pte = pte_offset_map_ro_nolock(mm, pmd, addr, &ptl); BUG_ON(!pte); assert_spin_locked(ptl); pte_unmap(pte);