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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 59404C433DB for ; Thu, 18 Mar 2021 04:37:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0AA4664F33 for ; Thu, 18 Mar 2021 04:37:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229512AbhCREhT (ORCPT ); Thu, 18 Mar 2021 00:37:19 -0400 Received: from verein.lst.de ([213.95.11.211]:39854 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbhCREg6 (ORCPT ); Thu, 18 Mar 2021 00:36:58 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 91B0768C4E; Thu, 18 Mar 2021 05:36:56 +0100 (CET) Date: Thu, 18 Mar 2021 05:36:56 +0100 From: Christoph Hellwig To: Ira Weiny Cc: Thomas Gleixner , Christoph Hellwig , linux-kernel@vger.kernel.org Subject: Re: kmap_local semantics Message-ID: <20210318043656.GA26988@lst.de> References: <20210312065413.GA29805@lst.de> <20210312153646.GE3014244@iweiny-DESK2.sc.intel.com> <878s6lzxsq.fsf@nanos.tec.linutronix.de> <20210318024418.GX3014244@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210318024418.GX3014244@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 17, 2021 at 07:44:20PM -0700, Ira Weiny wrote: > Agreed. I'm Sorry, I did not word the above clearly enough. Let me rephrase > that. > > Christoph, do you anticipate additional need to call kmap and hand the mappings > to other threads? If not then kmap_local is what you should use. If so, I'd > like to know why. No. Just looking into callers that want a mapping and then synchronously wait for I/O.