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.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 57918C43466 for ; Sun, 20 Sep 2020 17:43:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id CB3CA20789 for ; Sun, 20 Sep 2020 17:43:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="cBDZkiv4" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB3CA20789 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=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2EE7A6B0081; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2C5B56B0082; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1DB3B6B0083; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0111.hostedemail.com [216.40.44.111]) by kanga.kvack.org (Postfix) with ESMTP id 082C16B0081 for ; Sun, 20 Sep 2020 13:43:18 -0400 (EDT) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id BB5173628 for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) X-FDA: 77284161234.07.wine63_210f2a32713e Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin07.hostedemail.com (Postfix) with ESMTP id A034A1803F9AA for ; Sun, 20 Sep 2020 17:43:17 +0000 (UTC) X-HE-Tag: wine63_210f2a32713e X-Filterd-Recvd-Size: 5583 Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com [209.85.167.66]) by imf26.hostedemail.com (Postfix) with ESMTP for ; Sun, 20 Sep 2020 17:43:16 +0000 (UTC) Received: by mail-lf1-f66.google.com with SMTP id y2so11496660lfy.10 for ; Sun, 20 Sep 2020 10:43:16 -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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=cBDZkiv4uiqeUChUbmqRPD8tkvllq4angLGjbI6fcWbyt0pYNQ1SGMQdEdmcewXaXT IE5S9J/GFuNXr/rpY1dC/0Yf7uyzIPTs0u+8f3gLaQ3BI+ak5trluGhkQvuTa+ZLZ3HS UcueGtftJ4Q3p1fqvR6MgwdAfAMUTTFhAr56U= 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=ejz/GOVvBNgiciatH4EjBRwlfy2MnL1tDSObr2BrKeg=; b=P1xnoxlhqmad/KiWtK30brjAwvS4c3N8sGzryU1Z47pdgB5bVLdmuvW6eHUNYqNOQD PBYyfrrwEAd0rhNIVoJoSPWK5/e0C2Bd4kq3kvJg90nPr8LgVD1li5jXkfDAGILV+YIG NM2qz7DTXMKc3G47U7oCUWoMsuL6J1doMQgwgbFQuleRBQwmpHJtdmKgFQq6zkW+tSDK 95wei20w16a9RCIOv1vieepHtcgmxYbnITTCxKf+tvqx9wlI4H3QeIb15LBG/9+7EugO XLgyVzpdvhhmLt5W5ClLR1SDd3e77Sqfgobs57M9N3wQSNIPUJDBc0D+XuFjqvJzpkmW uiTg== X-Gm-Message-State: AOAM533a7PM1bzzugt3YchxV7Xb+KeSzRyqsT7/sBoni/vvPQRC8fX1z imVF2Y5tBHCvUC7l0H99OIYb7KvP61OEoQ== X-Google-Smtp-Source: ABdhPJxXNqplgnEAKAexx17PxB/C16K+g6TPGLfIunFRzBu1ASkwOhkO2/qUTFQtfwl8OhoJkZ4gWw== X-Received: by 2002:a05:6512:304d:: with SMTP id b13mr7017672lfb.37.1600623795028; Sun, 20 Sep 2020 10:43:15 -0700 (PDT) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id z24sm1917611lfe.54.2020.09.20.10.43.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 20 Sep 2020 10:43:12 -0700 (PDT) Received: by mail-lj1-f181.google.com with SMTP id u4so9168115ljd.10 for ; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) X-Received: by 2002:a2e:84d6:: with SMTP id q22mr13708479ljh.70.1600623791519; Sun, 20 Sep 2020 10:43:11 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <87mu1lc5mp.fsf@nanos.tec.linutronix.de> <87k0wode9a.fsf@nanos.tec.linutronix.de> <87eemwcpnq.fsf@nanos.tec.linutronix.de> In-Reply-To: <87eemwcpnq.fsf@nanos.tec.linutronix.de> From: Linus Torvalds Date: Sun, 20 Sep 2020 10:42:55 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch RFC 00/15] mm/highmem: Provide a preemptible variant of kmap_atomic & friends To: Thomas Gleixner Cc: LKML , linux-arch , Paul McKenney , "the arch/x86 maintainers" , Sebastian Andrzej Siewior , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Will Deacon , Andrew Morton , Linux-MM , Russell King , Linux ARM , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , intel-gfx , dri-devel , Ard Biesheuvel , Herbert Xu , Vineet Gupta , "open list:SYNOPSYS ARC ARCHITECTURE" , Arnd Bergmann , Guo Ren , linux-csky@vger.kernel.org, Michal Simek , Thomas Bogendoerfer , linux-mips@vger.kernel.org, Nick Hu , Greentime Hu , Vincent Chen , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev , "David S. Miller" , linux-sparc Content-Type: text/plain; charset="UTF-8" X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sun, Sep 20, 2020 at 10:40 AM Thomas Gleixner wrote: > > I think the more obvious solution is to split the whole exercise: > > schedule() > prepare_switch() > unmap() > > switch_to() > > finish_switch() > map() Yeah, that looks much easier to explain. Ack. Linus