Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1414206rwd; Thu, 8 Jun 2023 18:14:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6I5xbkb8maaYK8LHuBip8cFCFNhvfn09iLzmgli75zaFfBtYMYUesCFjxmHat0TMk97Krv X-Received: by 2002:a05:6a20:3d05:b0:10f:8798:9feb with SMTP id y5-20020a056a203d0500b0010f87989febmr5840196pzi.57.1686273286979; Thu, 08 Jun 2023 18:14:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686273286; cv=none; d=google.com; s=arc-20160816; b=vocSfMgqmvpW4SXe6bIAz9EBfA00juXHjpgtl4XszQu5LhngmtnsgUJieaGmr1iH39 eUUg5JEsRGKD1kNNEAEO0uvCCilw+K58qN3U+q4QyvJuKPri1hqNkyaXCGlqsDy4kzDU +leH8YtBl1blBB4j6s9Wi/jPRaPqhomnoYj7pj6I5513RLP393DARPLtkyWuHlA/Ay4U JLINGrl9qzwA81Rkz0TY0cwbiDtwQAWBK38ntWieUMmkSFm4/u0vOf683Cz2ey3kMNXI eQ+TKABA0Z1mkek0PURH/9GxoQ+HC59Il8e38oiZ9GCSxlqxKCvuNoSCGqFK1zS80sya FlBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=lc/g6LXQOs93yTgCiGczTkkFK+sAgodNjTysgahDEVw=; b=ILWWOmpa+HZCjWkRiPrcUE4ODs+GVuGv2RHLOw8FqJs7BpeQGh9pkTEVAiNJTCr/xx EdooOcLWgE5dRikptdewsKAbKahs71+9h9Ya5XoLSRpTVtCoRDbRyVHwYpJ+vzSJzZhT gM1tkkVrCMET6THLn+mcLsaADpQNPwbZK5Oy/9Z1Xtedt9ykTqxeg9jReqkj87svRu/8 NFiz1IBamRhaQ4DxVreDOnnRh0N5exTmz+lF2GQa+zU9rCUNBS1HtpMjwDK7N2aN77lO Ld+j7XldgUl5gbr+C/U9k3ygF5ol/vyaJChp5+zZvM0yNcYSobUfyD3QI1bgtOtHN6Nd mHpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=UcfhhEB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a170902d41100b001adbfba9c29si1745141ple.409.2023.06.08.18.14.32; Thu, 08 Jun 2023 18:14:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=UcfhhEB8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjFIBJd (ORCPT + 99 others); Thu, 8 Jun 2023 21:09:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjFIBJc (ORCPT ); Thu, 8 Jun 2023 21:09:32 -0400 Received: from mail-ua1-x935.google.com (mail-ua1-x935.google.com [IPv6:2607:f8b0:4864:20::935]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56462125 for ; Thu, 8 Jun 2023 18:09:31 -0700 (PDT) Received: by mail-ua1-x935.google.com with SMTP id a1e0cc1a2514c-786470fd7a3so464537241.3 for ; Thu, 08 Jun 2023 18:09:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1686272970; x=1688864970; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=lc/g6LXQOs93yTgCiGczTkkFK+sAgodNjTysgahDEVw=; b=UcfhhEB8JVYtSaYNjeXN56wB9MqyMQtCQGtprQFTqjfYjEL7E7V3Iy94OMfqel1oXO QZIcQiOjvsa3e98AoL/nIYiIeV2XwYtBY8pjjhbDjSLvNRXQUNuQ1CEyYWBCd3xYPZVP trZtykP/Mof04N1VHc0lVHbgyp1EiW4pew5nO8aSYUb++iO0ncGeIIIiQK3p/c+W0yHU AAa6tsu0E2vKcj4HqLxwkHvPM9meFiA6K3qv+5vTGLBRG4cfgXg5/75cLxanqJajUo8o cFN/FNCedO3dWchgzF6syrkwFnGXauAim52zAU4uX164Btb5VfynbXsQAJloguXMP3eG dROw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686272970; x=1688864970; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lc/g6LXQOs93yTgCiGczTkkFK+sAgodNjTysgahDEVw=; b=axaT44TRtnT5adueFlXqt2Nb0labDw9oSj/8uTSjE6Num/DSgY8HVkgAwxHrXVhUh1 o1KmDlILMXr+7jvdHL1QKGS2+TuKcwaNJHYJ6lydsfPBnqV5k/cNq91dB+pdx+NZCybi QpQWOqcpPlJT0AZc0ZbD17msch3lglKJOpiXw1R62MGBQWRt6kGOnuUUHUNOa6/kdUi8 bMZYiDpdzgFPInEjimAfWRbfGFXVflqGZR1kbWZp/KUQ6i85DPlzD5muelK9a9+Yw02s NIJwO4R+FRNRTgZ5zedua5EyO7oa9PlikcqdtPuHLcZfv++nPB+hY0ThDARn92xoIl7J kk+Q== X-Gm-Message-State: AC+VfDzqbQjqY1eaTSYdb/eYyQjbSVlfErPC4Ot9zSQUzlDCU8RFqtrz 3oj6WheFZNs1fVR5LDplA5gtdg== X-Received: by 2002:a67:f490:0:b0:43b:1dfa:2534 with SMTP id o16-20020a67f490000000b0043b1dfa2534mr162704vsn.10.1686272970295; Thu, 08 Jun 2023 18:09:30 -0700 (PDT) Received: from ripple.attlocal.net (172-10-233-147.lightspeed.sntcca.sbcglobal.net. [172.10.233.147]) by smtp.gmail.com with ESMTPSA id n11-20020a25400b000000b00bb393903508sm603507yba.14.2023.06.08.18.09.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 18:09:29 -0700 (PDT) Date: Thu, 8 Jun 2023 18:09:25 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@ripple.attlocal.net To: Andrew Morton cc: Mike Kravetz , Mike Rapoport , "Kirill A. Shutemov" , Matthew Wilcox , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Yang Shi , Mel Gorman , Peter Xu , Peter Zijlstra , Will Deacon , Yu Zhao , Alistair Popple , Ralph Campbell , Ira Weiny , Steven Price , SeongJae Park , Lorenzo Stoakes , Huang Ying , Naoya Horiguchi , Christophe Leroy , Zack Rusin , Jason Gunthorpe , Axel Rasmussen , Anshuman Khandual , Pasha Tatashin , Miaohe Lin , Minchan Kim , Christoph Hellwig , Song Liu , Thomas Hellstrom , Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: [PATCH v2 03/32] mm/pgtable: kmap_local_page() instead of kmap_atomic() In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pte_offset_map() was still using kmap_atomic(): update it to the preferred kmap_local_page() before making further changes there, in case we need this as a bisection point; but I doubt it can cause any trouble. Signed-off-by: Hugh Dickins --- include/linux/pgtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h index 8ec27fe69dc8..94235ff2706e 100644 --- a/include/linux/pgtable.h +++ b/include/linux/pgtable.h @@ -96,9 +96,9 @@ static inline pte_t *pte_offset_kernel(pmd_t *pmd, unsigned long address) #if defined(CONFIG_HIGHPTE) #define pte_offset_map(dir, address) \ - ((pte_t *)kmap_atomic(pmd_page(*(dir))) + \ + ((pte_t *)kmap_local_page(pmd_page(*(dir))) + \ pte_index((address))) -#define pte_unmap(pte) kunmap_atomic((pte)) +#define pte_unmap(pte) kunmap_local((pte)) #else #define pte_offset_map(dir, address) pte_offset_kernel((dir), (address)) #define pte_unmap(pte) ((void)(pte)) /* NOP */ -- 2.35.3