Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp632057rdg; Thu, 10 Aug 2023 14:12:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5YYkzsvAX+iB6HgBTLUlwWhc8Vkdb86ibICP5ZjHUGChbEd/fd9E51Jmj9mGuJl/bP46/ X-Received: by 2002:a05:6808:1aa6:b0:3a7:2621:2daf with SMTP id bm38-20020a0568081aa600b003a726212dafmr3315977oib.42.1691701934922; Thu, 10 Aug 2023 14:12:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691701934; cv=none; d=google.com; s=arc-20160816; b=g1D4bPnfwcMX3Ceox3UOHZq4HZG48/QSkrDd/GmAOmvGsgiREswsTsurmPDTJ88jSa WJXfVy8c9gJJ3VPx/VMvd1xGn4vLtCMhKEiAGCkM9bLIgmKz6D8RBbvWN5NXZND2IOpH 8dGmuwD6bFRTtwgPznkesHA3WwT8tYmHFn+XVhq24covy5NdbLt8hwtU/QH73p6YXp47 76LkUYiRSozRrZ6NSos9z6Wnc128D14aThyAZJRFNGDiDD0V1pN1NilOYu/xWe9yoikg IrTBx8L0EoG/93DRChmdtt6wbgPOt87ob71RYgSci9j1KxTm3RU2x1cQKp4rzasvIFRo 84hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=ic4schc/qJ7LDvUiLsnmhQGORgnIPDmeTJTv/02s+8s=; fh=xq2L8vJKCSIjU2utSPdyaByeL0zopCqDqrG4B1rAqnw=; b=EiX2wWH61Ui4/fSBQEptNcxqmi0MYR0he5Gdsna6ri6ryH5NvB7IBm1N5oqqnidXva xIf6G1aHx265KG/6e9hV3dqPt28+92hXBaR5ouAwGmcWk0M44KuzUAg5PtlLq2cAjRa/ Eb2eiHxfzR4GoNM4Tfoc1FmO3N4Mx5SZxyn8c9YmZRg49osCTdzYPN0VxVVzj3zie9sE NF3tF5mSlLmmqyoef4lTvO+LsrVZJ/7uppC5oskeI9wqmAhhjNlfNStb9V47t9FCThIy D3ynB8E/hW5pEuWPSXyXZg+IJBYLNT81O9ersWWuSNcBDDYatIIleiPeqkcMP99mQX/O 8unQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s8-20020a634508000000b0055c868268f9si2216525pga.462.2023.08.10.14.12.02; Thu, 10 Aug 2023 14:12:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235121AbjHJTy5 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 Aug 2023 15:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233618AbjHJTy4 (ORCPT ); Thu, 10 Aug 2023 15:54:56 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C682273E; Thu, 10 Aug 2023 12:54:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9F9A7622F562; Thu, 10 Aug 2023 21:54:47 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Zau3YReFNhfe; Thu, 10 Aug 2023 21:54:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 02602622F56E; Thu, 10 Aug 2023 21:54:47 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id LCroLhpcM-fu; Thu, 10 Aug 2023 21:54:46 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id CA9C5622F562; Thu, 10 Aug 2023 21:54:46 +0200 (CEST) Date: Thu, 10 Aug 2023 21:54:46 +0200 (CEST) From: Richard Weinberger To: Christoph Hellwig Cc: linux-mtd , Stephan Wurm , stable , Miquel Raynal , Vignesh Raghavendra , Oliver Neukum , Ali Akcaagac , Jamie Lenehan , James Bottomley , "Martin K. Petersen" , Ezequiel Garcia , linux-kernel , linux-scsi Message-ID: <164102534.5258032.1691697286622.JavaMail.zimbra@nod.at> In-Reply-To: References: <20230810160019.16977-1-richard@nod.at> <20230810160019.16977-2-richard@nod.at> <298860961.5257332.1691684136772.JavaMail.zimbra@nod.at> Subject: Re: [PATCH 1/7] ubi: block: Refactor sg list processing for highmem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: block: Refactor sg list processing for highmem Thread-Index: 1KQDP1L0ZIhn5gNyfCrsrXqi59LrWA== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,T_SPF_TEMPERROR 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 ----- Ursprüngliche Mail ----- > Von: "Christoph Hellwig" > An: "richard" > On Thu, Aug 10, 2023 at 06:15:36PM +0200, Richard Weinberger wrote: >> >> The followup patches in this series will switch to kmap_sg() >> >> and we can remove our own helper and the bounce buffer. >> > >> > Please just use kmap_local and avoid the bounce buffering. >> >> Patch 6 does this. > > But why add the bounce buffering first if you can avoid it from the > very beginning by just using kmap_local instead of adding a new > caller for the deprecate kmap_atomic? Because I want this fix also in all stable trees. kmap_local() is rather new. When back porting patch 1/7, bounce buffers and kmap_atomic() are needed anyway. By doing this in patch 1/7 I avoid backport troubles and keep the delta between upstream and stable trees minimal. Thanks, //richard