From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3B6A3C00A89 for ; Fri, 30 Oct 2020 20:38:12 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3848B208B6 for ; Fri, 30 Oct 2020 20:38:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="J8d/YD59" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3848B208B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4CNDf85bxSzDqwh for ; Sat, 31 Oct 2020 07:38:08 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=linuxfoundation.org (client-ip=2a00:1450:4864:20::242; helo=mail-lj1-x242.google.com; envelope-from=torvalds@linuxfoundation.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=google header.b=J8d/YD59; dkim-atps=neutral Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4CNDbz0wvlzDqrs for ; Sat, 31 Oct 2020 07:36:14 +1100 (AEDT) Received: by mail-lj1-x242.google.com with SMTP id 2so8237942ljj.13 for ; Fri, 30 Oct 2020 13:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kjos0+S2Gon+fH3b26doFlCP2cxrfT62BjLoezK4rG4=; b=J8d/YD59wQ/au5l1BQ7ue2vwfU1yPmEzaWIbs72/a3aDX73KGLSsh/e6e4T2ilr+m6 v7YctKloyJWKSYk1q7y81pi983c4f8E7/f/kLdP0CFwMkO7uyjtkdfJgwTbIAUd3yTgV b5YrSxtLonkg9fnewHN7YslOk1fl6e5oIhge0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kjos0+S2Gon+fH3b26doFlCP2cxrfT62BjLoezK4rG4=; b=DogfZG84He4gr/Wo8dwtVWWFwiUjwu4sbD7HsZyiLVCpuqEQbZ1FR6HXzUB/Gz7HEQ c/mgHc0kplxkrBI7JWL9Aa+y8OLPWZsH0tL1vDucriimDnYqd+agp2Htzme2irvEuNpj cTj6w3jx0idnPRHLbJt0r2+UjE1fi8u1v1VhQvGGidajD1TZc07N5Ps7V6zT2cgnBqbB iHGEQSXpJtDHvXXf6sJWvnTnsTHo0sWmrPnFURCMLcj4chLD3OHyTEn2oyLIVSooJGE1 f8hsdmfzM0HG24VmbOmFSYSRx3vC2assCzXFjFroZADDPH++TWnU3ysdaX3fV1bSxr8A 1pAQ== X-Gm-Message-State: AOAM5339q2hFVg2IgbmeQgkzl3ZerwXzD9b0M1H4T81I8hsz5or2Z22+ 5Jw8uwzTvd0P9jSLZ+rDAmRAAuogeQbqTw== X-Google-Smtp-Source: ABdhPJy+GJe8/0h/w7qIheBUzWjBJALpMwbzUkGKnvKh3PKIgGC4+cIprlSFhHEmDPl7LIipqc/O1g== X-Received: by 2002:a2e:6e11:: with SMTP id j17mr1956944ljc.288.1604090169318; Fri, 30 Oct 2020 13:36:09 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id n2sm719992lfa.24.2020.10.30.13.36.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Oct 2020 13:36:09 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id v19so3344182lji.5 for ; Fri, 30 Oct 2020 13:36:08 -0700 (PDT) X-Received: by 2002:a2e:760a:: with SMTP id r10mr1661953ljc.421.1604089720167; Fri, 30 Oct 2020 13:28:40 -0700 (PDT) MIME-Version: 1.0 References: <20201029221806.189523375@linutronix.de> <87pn50ob0s.fsf@nanos.tec.linutronix.de> <87blgknjcw.fsf@nanos.tec.linutronix.de> In-Reply-To: <87blgknjcw.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Fri, 30 Oct 2020 13:28:24 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V2 00/18] mm/highmem: Preemptible variant of kmap_atomic & friends To: Thomas Gleixner Content-Type: text/plain; charset="UTF-8" X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Juri Lelli , linux-xtensa@linux-xtensa.org, Peter Zijlstra , Sebastian Andrzej Siewior , linux-mips@vger.kernel.org, Ben Segall , Linux-MM , Guo Ren , linux-sparc , Vincent Chen , Ingo Molnar , linux-arch , Vincent Guittot , Herbert Xu , the arch/x86 maintainers , Russell King , linux-csky@vger.kernel.org, Christoph Hellwig , David Airlie , Mel Gorman , "open list:SYNOPSYS ARC ARCHITECTURE" , Ard Biesheuvel , Paul McKenney , linuxppc-dev , Steven Rostedt , Greentime Hu , Dietmar Eggemann , Linux ARM , Chris Zankel , Michal Simek , Thomas Bogendoerfer , Nick Hu , Max Filippov , Vineet Gupta , LKML , Arnd Bergmann , Daniel Vetter , Paul Mackerras , Andrew Morton , Daniel Bristot de Oliveira , "David S. Miller" Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Fri, Oct 30, 2020 at 2:39 AM Thomas Gleixner wrote: > > But then we really should not name it kmap_local. 'local' suggests > locality, think local_irq*, local_bh* ... kmap_task would be more > accurate then. So the main reason I'd like to see it is because I think on a non-highmem machine, the new kmap should be a complete no-op. IOW, we'd make sure that there are no costs, no need to increment any "restrict migration" counts etc. It's been a bit of a pain to have kmap_atomic() have magical side semantics that people might then depend on. I think "local" could still work as a name, because it would have to be thread-local (and maybe we'd want a debug mode where that gets verified, as actual HIGHMEM machines are getting rare). I'd avoid "task", because that implies (to me, at least) that it wouldn't be good for interrupts etc that don't have a task context. I think the main issue is that it has to be released in the same context as it was created (ie no passing those things around to other contexts). I think "local" is fine for that, but I could imagine other names. The ones that come to mind are somewhat cumbersome, though ("shortterm" or "local_ctx" or something along those lines). I dunno. Linus