Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp856238rdg; Fri, 11 Aug 2023 01:52:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUTvzQ9m8dkLu/z4a+a1xnefWejnI4xvq6zOATIqWARUxCMae4t1jtIqqDQ5wB1CQmT18c X-Received: by 2002:a17:906:32d6:b0:99d:5adc:fdff with SMTP id k22-20020a17090632d600b0099d5adcfdffmr1250514ejk.45.1691743947911; Fri, 11 Aug 2023 01:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691743947; cv=none; d=google.com; s=arc-20160816; b=sKnN7qU+kzpvMIaSRVMD2jw2rFHkcjwQtKXGdwVPPgHNnE+ysE9VXgLoYFGin8QlaA alivfZXHr7fT5Whgsm3oGnRCI7Y86JD2Y9zYt64i2F3w9w/yiigbpDWZJ6nwV7rKZszY MeFvRzcFnJgNjDxA9zqsX7N3vVHROsHqLtq7psNLqIKmLb7cfaNqi8PFEjDXnWp3lTFC A+3kmsOWspZYMl4C74JjCJo56FZvtrRep0+vsTQEgaa57QXAlvEa5PEUGno9jJW3Kbds mCpDwO+icJpTmHduI1dNTmQSFENzzgLVdPNn8jnjXAt1dbsKJNZrHfjCl7qrIIWv3Cng WmiA== 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=bnx9BwEY4lu0rJQxXNmeO8aj9YUVA410qmuosBQYGD4=; fh=xq2L8vJKCSIjU2utSPdyaByeL0zopCqDqrG4B1rAqnw=; b=Gm6kzEZ6XnZBPx4nel5czEEYQ+HnYVA6RG7FcG5iU7gzhU2++tKNuvoTBijMptcwtH qaTaS+CGb8kM1+bSyWgGnswaOOVl8yxM9VDgVjf6krReRKamxv1EQKxmy6Q4Bpz+O+7f PdEMpbUVxxu2UZGY8cpNaN1D3zWGAAS+CG6zl13c+SqPfT/oq/KHnFDKqp/idFzOJUvq 27J9K1CYmRNsu+/nRIeIP2RWX1rjEBLTGl8tQPy2poYybAh94T3myT1l4nE1vtRJ5bEp 4+b6M8TMgsbFKQz+BYegOzIxDimXtWwolduKBWqonhGb2RV7A3zmuFXOHHLJoxDOk/Xy rG8w== 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 x10-20020a170906134a00b0099bd73c9bcesi3137218ejb.730.2023.08.11.01.52.02; Fri, 11 Aug 2023 01:52:27 -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 S230105AbjHKIfB convert rfc822-to-8bit (ORCPT + 99 others); Fri, 11 Aug 2023 04:35:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbjHKIfA (ORCPT ); Fri, 11 Aug 2023 04:35:00 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F084A2D61; Fri, 11 Aug 2023 01:34:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id CDC58635D298; Fri, 11 Aug 2023 10:34:53 +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 gWYbKucqjmIx; Fri, 11 Aug 2023 10:34:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 61490622F58E; Fri, 11 Aug 2023 10:34:53 +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 1iVyzkI06y4o; Fri, 11 Aug 2023 10:34:53 +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 26A06622F562; Fri, 11 Aug 2023 10:34:53 +0200 (CEST) Date: Fri, 11 Aug 2023 10:34:52 +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: <156807159.5281174.1691742892935.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> <164102534.5258032.1691697286622.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: 3zEdItUFC1BXLJjJLxUA1x/tImNOyg== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SPF_PERMERROR 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" > On Thu, Aug 10, 2023 at 09:54:46PM +0200, Richard Weinberger wrote: >> > 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. > > Just use plain kmap for the historic backports. Hm, yes. For UBIblock kmap should be too expensive. Thanks, //richard