Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp871788rdg; Fri, 11 Aug 2023 02:32:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEvJ8JnhQvbVHqUIN5vvyZ1pWe0nd3D5xm4MMAkraF80x+B85LYO6t66eYmil9xovJG/yIV X-Received: by 2002:aa7:d3cb:0:b0:523:c36e:ec8b with SMTP id o11-20020aa7d3cb000000b00523c36eec8bmr1709879edr.9.1691746370358; Fri, 11 Aug 2023 02:32:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691746370; cv=none; d=google.com; s=arc-20160816; b=JIHRV3NbvI3y7bfmtCDXwnTfhWQr0Bbn1Ya7hlHUa/tZ1E1OywfbGNl6OyXyeskLIb BWMLogeGYlRh3jvTAd9uJfJrq5n3lQtWcOBkgVcdJV+S7i/QMSALIkhjbg+NjPvhGkYo VhToEg4PXW9LPeGC2kMEIH08va2xiyjXvLZUFs63493HhtifB6AQ+5/XBSDbCaY7P390 9KWfnHIcxo6gksd3+oRQaNI3Bxco3/+rFux8srt+3Y86XhvHToa3e4CP15GrOMtwq1dq 7Y7qEc+aowz3V/hyyLazUHueUQ2MFQtQ8ILi3sXhbRIVsISpqKPBlTpdYDp3eYeCT9TI FIPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EB04r0U/QOmdPdeA69z+u0e9s4yi58XP6YzRO4akQCo=; fh=zcQzPM8MYgo1JXPbZRWaS6yEprvwvxT9njAHfDv+RJ0=; b=Ejwk7WpVKPRkfdxkJgCzzNsZX09MYP2FJ606i+eKpOmRTLNsQvHkrzlvip+ghhfyVL eBvCVPWVWOFkdUcbD5bP8WpQo59HdgYAQOZ7fjr47imfV4Wzo+SPOi5WNWB7APfvsZNq TchlGtq3fJie7QbjpxjWOU6Ilt7mm7euByvq4QHLKqGiTZYMT8VUPtfmS0oe86GSV/Yh OvjIjVAU6fe2sjIjdsG+yA1WchrYSC0/YPQAhF/dSNHLO5s/XHPqpvaypYMHxJk4MJDX Yrq4d7904L0bG4vp6FhouJxr4LHLIqARAoe6i5WHYaK5vANlAaOZw0MXR6fKv4E2SqAi W5cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="PGKp/ttp"; 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 z24-20020aa7cf98000000b005234f30c399si3065611edx.127.2023.08.11.02.32.25; Fri, 11 Aug 2023 02:32:50 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="PGKp/ttp"; 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 S233507AbjHKIMv (ORCPT + 99 others); Fri, 11 Aug 2023 04:12:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjHKIMt (ORCPT ); Fri, 11 Aug 2023 04:12:49 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95CE5110; Fri, 11 Aug 2023 01:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EB04r0U/QOmdPdeA69z+u0e9s4yi58XP6YzRO4akQCo=; b=PGKp/ttpJ0pZ+eqqer+Ecb5IUC Z+n8VqpiX/Vri8Kde3QcTZ5BIMjCMu7gt7rTQ+Mw06uU9dLCPeEYkEsSvPrq2h1aqlfYR/zUYyGPe f9oCN/Av6JIltFyS/xVT6Bx05MU+GGKO+2g4Hg8rN/xxKLZ1jf7lXghpSJaaJX3RWIddvYzFFhHXy NQWam5Ord/sA2l1ru5vrrQPpBpetCOVlFVpbmutHCQAn/9+kpd3pAlJTybY7fEDReGYuxOkf8t8/u 2f1INfljKC0F7bXdWu4lJTIuma1K1Z4mbPho884BFl8N8NjS0ValUJ2N3DxWHQp77PqDLcMy4lhyK Doe11v7g==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qUNGA-009pPe-39; Fri, 11 Aug 2023 08:12:38 +0000 Date: Fri, 11 Aug 2023 01:12:38 -0700 From: Christoph Hellwig To: Richard Weinberger Cc: Christoph Hellwig , 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 Subject: Re: [PATCH 1/7] ubi: block: Refactor sg list processing for highmem Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <164102534.5258032.1691697286622.JavaMail.zimbra@nod.at> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 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.