Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp24893702rwd; Sun, 2 Jul 2023 06:44:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6DzrDtMuu5fo2IFyV+XDdfQuChx73v8a6kkp9fOouH19duEDSdmHLvlN0YyQNqukFoCxAQ X-Received: by 2002:a05:6a20:970c:b0:11f:64ec:6946 with SMTP id hr12-20020a056a20970c00b0011f64ec6946mr6054968pzc.14.1688305478047; Sun, 02 Jul 2023 06:44:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688305478; cv=none; d=google.com; s=arc-20160816; b=IKYEPtZ9Yy3uvKrkieprpgvkDegUez7mjlYz6EHdz1k6HX0O4rTCCAD5Zgbp9n1Qjm GhWNXKNgT8lay0VMGf5Foq1jzKpWbFCqrPdXF9hpvb9LcMl5azUylm8L7SD2sA/viXbb ORotSythXdzCBonU17Xxo7M10wNcNBY5almdimaPkTWDbsu4AExq5FXsl+VESkSAaEmo xalcXb49iCQb+6A8WnguvqZrF8RD4qNk7XzvSxcEfelrnp1y5iLJmrfFdGw7CuYXnUU0 0dPARM7bcnzwr3KXH2JSOr6GiaiduxqmgdFPHSkZpS4UqbXN8KmIJ7sjqV6nS/QEgAL3 DJYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Dgdbr/HmtEQw8fSZt1jOsGt71w5fzM6AVixcIzI7qJk=; fh=pa2zvlarMGHma4wlxgm8+wVIxW5+zMGxxS/ybO2A0LY=; b=WV2aPVtAx8kcajH4FIS05oVPl8U3Z/4rMqNqUDWU5ui6GTqCPldIStArJMKmD6xog4 3M/RHOdf7A3g4wowbxGaSZhkz/q434SPk+60aqjPs1TKc4RvhoX97v443HXrruS5SlX+ qzPH7eAMWvOPNdtgL8C+wvfjNEk8120s+lbpXnWubdawTegxnrEZfaSGildBp/xCV7bw lzwQzthQbdcDTagIpMPj8iVyuCDwJuktwysv3c8JW1THEpmNWhwW343o44u2fsGCYMMX hmVssrOoD1PjcoPQwHmTvza0Hl/N4tKMyDx/iLjP2JJYCThcGSsG0A8Vw20FMB/obXl0 YYzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BuPmVteA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk13-20020a056a02028d00b005572b5c0f1fsi17078395pgb.369.2023.07.02.06.44.23; Sun, 02 Jul 2023 06:44:38 -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=@gmail.com header.s=20221208 header.b=BuPmVteA; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229875AbjGBNFQ (ORCPT + 99 others); Sun, 2 Jul 2023 09:05:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbjGBNFP (ORCPT ); Sun, 2 Jul 2023 09:05:15 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB15A1AC; Sun, 2 Jul 2023 06:05:13 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-3fb4146e8deso51132685e9.0; Sun, 02 Jul 2023 06:05:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688303112; x=1690895112; 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=Dgdbr/HmtEQw8fSZt1jOsGt71w5fzM6AVixcIzI7qJk=; b=BuPmVteApu1zcDJhkUW6FT4U4hP+BmZp0AG67WPeohkAkUaRSYIPGHMQywBPlsSJ0P h5qj/+r+48xaHfmRiiNH5c0Gf+3xVPtZpIGeYBRcrq1XmkGHl5mO7hEWe/7sWhgIbD1s bHzPJQwPlAs4p4VLR4rYJUJngP9OEFdF6wQKvjyaV+B0pTK2sJqPptr1rr9D41tv8yWU SYHetBT2ppr6gclkuXPAH6FZsoAl7QyVI+3G4qC6R2JSzOPZ+73MkU7anseCunQEOTry r2JFe6Bo9DHxcrCmZYFQzBbm3DlZ2bARdpO2yS+5IjrzXKjyoIXJeMExt7WRGV8kXhRZ UqmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688303112; x=1690895112; 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=Dgdbr/HmtEQw8fSZt1jOsGt71w5fzM6AVixcIzI7qJk=; b=LZZ42FNNYDmK2E3kvH+6xFWVozLqgSQhKbWfZKM0k/zbS1TlSoMkb2cDkz4lIIhhJv vc/cTM0RBkO8Mgv6OHb3bOUs05x6hOIf45SUKhYA0MXmVE9yrGBqjl8doQGnbLuI3niY Ot5QceYnNLo3nsPRt9zhUWnGmnCfbbqQITSagpNqoq7cf/EpMoCucjfdKprWDsUy+dQ2 N0HrNpTp+Pu6/XJKhkTdVIPzRDwNz+58GBOYwtFrnlXhxZBdp9uo+SZbwv/djKQRRK9l lJ/E08M7z9s358MCfdQXRSR0BZl3dk7qIxLk1X/l2WueVKNw8gPznrdavDeOH4hOQxMy HnUQ== X-Gm-Message-State: AC+VfDy/9fPdy9+Yg2YIV6qURZKT9qrdy3D2zy94slVZzf7RPIjFZlJG 2mLuv/5SHMTiaFi01gYV4J0= X-Received: by 2002:a7b:c445:0:b0:3fb:adc0:c37d with SMTP id l5-20020a7bc445000000b003fbadc0c37dmr9207057wmi.38.1688303112007; Sun, 02 Jul 2023 06:05:12 -0700 (PDT) Received: from suse.localnet (host-82-49-237-33.retail.telecomitalia.it. [82.49.237.33]) by smtp.gmail.com with ESMTPSA id k16-20020a05600c0b5000b003fba6709c68sm15014903wmr.47.2023.07.02.06.05.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jul 2023 06:05:11 -0700 (PDT) From: "Fabio M. De Francesco" To: Matthew Wilcox , Randy Dunlap Cc: Jonathan Corbet , Andrew Morton , "Mike Rapoport (IBM)" , Deming Wang , Ira Weiny , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Catalin Marinas , Mike Rapoport , Peter Collingbourne , Peter Zijlstra , Sebastian Andrzej Siewior , Thomas Gleixner , Vlastimil Babka , Will Deacon Subject: Re: [PATCH v2] Documentation/mm: Add information about kmap_local_folio() Date: Sun, 02 Jul 2023 15:05:09 +0200 Message-ID: <2238844.iZASKD2KPV@suse> In-Reply-To: <970a881a-cdaf-2568-657a-3b93b0273338@infradead.org> References: <20230701142041.9992-1-fmdefrancesco@gmail.com> <970a881a-cdaf-2568-657a-3b93b0273338@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On domenica 2 luglio 2023 01:59:04 CEST Randy Dunlap wrote: > On 7/1/23 16:54, Matthew Wilcox wrote: > > On Sat, Jul 01, 2023 at 08:21:20AM -0700, Randy Dunlap wrote: > >>> -* kmap_local_page(). This function is used to require short term > >>> mappings. > >>> - It can be invoked from any context (including interrupts) but the > >>> mappings > >>> - can only be used in the context which acquired them. > >>> - > >>> - This function should always be used, whereas kmap_atomic() and kmap() > >>> have > >>> +* kmap_local_page(), kmap_local_folio() - These functions are used to > >>> require > >>> > >> acquire? > > > > "create" might be better? > > Yes, that's good. Agreed. However, I can send next version only by week 28th. Thanks, Fabio P.S.: Actually I meant "to request". Unfortunately, "to request" and "to require" may have the same translation in Italian, my native language. I preferred to not use "acquire" because it is re-used few lines below. So I thought that "to request short term mappings" was good (although I wrongly confused the different meanings between "to require" and "to request"). Matthew's suggestion to use "create" avoids repetition of "acquire(d)". > >>> + short term mappings. They can be invoked from any context (including > >>> + interrupts) but the mappings can only be used in the context which > >>> acquired + them. The only differences between them consist in the first > >>> taking a pointer + to a struct page and the second taking a pointer to > >>> struct folio and the byte + offset within the folio which identifies the > >>> page. > >> > >> -- > >> ~Randy > > -- > ~Randy