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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E439FC41513 for ; Fri, 11 Aug 2023 08:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbjHKIMu (ORCPT ); Fri, 11 Aug 2023 04:12:50 -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 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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.