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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 4437DC43463 for ; Sat, 19 Sep 2020 19:20:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F332021707 for ; Sat, 19 Sep 2020 19:20:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600543229; bh=QMbBSSWB+rPWNJ7EMIocj0WPzEM7MxHjK6NIAgERVjA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=J4UQ3gXDvjI/dn794xdV+xl4mTbeIYa9gTE4eh9FGCRH87N47h5Ly8DtekJoIYl8B 7r28S6zQfpGSUI0B0AGciQWjpc1MP22CVgBXiCPrHqnq+LCTI5E2Yb0xhlkyUXg2Nk Y9te93Xquj3Gf85wzQX/lcbwaxizqhg0rex0zWow= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbgISTU2 (ORCPT ); Sat, 19 Sep 2020 15:20:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbgISTU2 (ORCPT ); Sat, 19 Sep 2020 15:20:28 -0400 Received: from mail-lf1-x142.google.com (mail-lf1-x142.google.com [IPv6:2a00:1450:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07009C0613CE for ; Sat, 19 Sep 2020 12:20:27 -0700 (PDT) Received: by mail-lf1-x142.google.com with SMTP id y11so9768970lfl.5 for ; Sat, 19 Sep 2020 12:20:27 -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=10sVGN8u2TwfCpnAq/jp4iLrESxL2PzGGvVZbBHI37U=; b=SNvzyY/D28nrQ/9in1B6Dzi002SQEpeIWQ8e1hzmI9hVRDCDcHjzeJE8AlbYJKjj8B G7NnpY7h0luEeygyoDxqLDk2AWGbQCdyloo3Y9XIxWLvxZdXjZ/NeK2kaD/mL0YWoior T+0jhpZUK76WT2Sz7na41qAPiBNog2OUpnoIA= 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=10sVGN8u2TwfCpnAq/jp4iLrESxL2PzGGvVZbBHI37U=; b=HJQtEIpalr+9aOw7wdW1INX04kd9M4HFibEabmwQoafxquyLV91KfPLlcP3prm4hGn Vdgs0Phz8GpDvmDJiXMQKrjkU+TvXakp1oNBkt0WiiM6JfdKVWLPHVmqml1f6khOpxYd tjhMCQTznYHrzlT4UYSjN55WrNPgTdPhebTZTKaV93aSEf7XNJioAx++pgqFnCyY0UJo wdjfR5B3WFkSnHtHncSHy/Lfcd9XpwaG94UnfLc+9tM5VtXaPt/10PrGasA6gwYfU8+M 3/PlPEJX7AEZVD5B3eFr6dYOcH6fBhyFZ1lPynEPF59LT00hcix4ovpeScFDJtv8vSwI KUOw== X-Gm-Message-State: AOAM532nEr2KzUwueGpFOc3YMel5Np1bJIloECqCXGzCJgxlNiXfBjBb zJLZHdhuhOU/MgMT9GqM8TGzxRiFiBsEIg== X-Google-Smtp-Source: ABdhPJxp1+pyC/L1ACK9wntWHnejdVdiuefABt5xwfEytgfV4FDVLqg/gGRfBtp1zMikFtSjhxkI6A== X-Received: by 2002:a19:106:: with SMTP id 6mr14203298lfb.276.1600543226096; Sat, 19 Sep 2020 12:20:26 -0700 (PDT) Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com. [209.85.167.49]) by smtp.gmail.com with ESMTPSA id c10sm1421354lfc.4.2020.09.19.12.20.25 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 19 Sep 2020 12:20:25 -0700 (PDT) Received: by mail-lf1-f49.google.com with SMTP id x69so9763226lff.3 for ; Sat, 19 Sep 2020 12:20:25 -0700 (PDT) X-Received: by 2002:a19:8907:: with SMTP id l7mr12464193lfd.105.1600542797553; Sat, 19 Sep 2020 12:13:17 -0700 (PDT) MIME-Version: 1.0 References: <20200919091751.011116649@linutronix.de> <20200919173906.GQ32101@casper.infradead.org> In-Reply-To: <20200919173906.GQ32101@casper.infradead.org> From: Linus Torvalds Date: Sat, 19 Sep 2020 12:13:01 -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: Matthew Wilcox Cc: Thomas Gleixner , 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" Precedence: bulk List-ID: X-Mailing-List: linux-csky@vger.kernel.org On Sat, Sep 19, 2020 at 10:39 AM Matthew Wilcox wrote: > > My concern with that is people might use kmap() and then pass the address > to a different task. So we need to audit the current users of kmap() > and convert any that do that into using vmap() instead. Ahh. Yes, I guess they might do that. It sounds strange, but not entirely crazy - I could imagine some "PIO thread" that does IO to a page that has been set up by somebody else using kmap(). Or similar. Linus