Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp869468rdg; Fri, 11 Aug 2023 02:26:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFTYXK1JATvy14YbXJMsIX+nEGo66EKXLsHdA8nxjIlk94EsWZ6GhPbvsoYGu4lkp2G63OE X-Received: by 2002:a17:902:db11:b0:1b7:c0b3:b17d with SMTP id m17-20020a170902db1100b001b7c0b3b17dmr1241712plx.5.1691745986630; Fri, 11 Aug 2023 02:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691745986; cv=none; d=google.com; s=arc-20160816; b=G1QPCX1QyCZSuvJIs0CFFSskAO5Y3APu7jeVqNXcCw7m3wdnqIPqmeOIinIIApxFW4 GalIkruzJsTefrj/VQqDPmytUMAIE8k1Jl/TqESHKpTviagUpRCRh9chOALcPVva5iLo L+jcg8KAwLwNkBNwEUFEvW1Iv98EFCWdfVbCfl70I9UZ7FDA/cc5tFlmwixCHXYCNkxI mvniQSolwUnloGiNPUWJ46Osd7NukrBNKF7lIRbODGTyfE20a3JSsFkQzg2/JM39knCL fMfaqn9W/zXs34TK7nySJltr6LSl1RI9wG+QGqM1D8+kjwtCVXJwMboirZ+U+YoR6pij DdcQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=cJocosMaFpZJVLW25SbAxt5T2sdLdDBAbE/g/2G0uCE=; fh=zcQzPM8MYgo1JXPbZRWaS6yEprvwvxT9njAHfDv+RJ0=; b=UvkU8DuJGLAjFBycwzAhXmPengbPmQd2VgQfM+sxbbVxGqfO+zIS41Ucux3r9qZa0v 67E1DSTeN+LU4tkCJnCv9QQmb26XlzpRQ+utPiX+pZUUbr2qXmN4M2Q0pf0LNZZyz2Sp i2lSj+lT/iGjcc5VFl5f4ywLAYTpACnARyjlfjhQuP/HNuqu6+a0XSxINZDt1BpB2Zz4 pXJoqlNvRP2q0wJ7dL7kC+47EN/KhpScCMCPyNPDwJ5lJ+KuSGWJEHN71i0OQ2rZeDUg vDAuICzKQD977+0UW29W2h3bOSixJ4fpqpmFuifRLVNdOL43E/Emo0GsDhDTckZi8EeT 9zGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=e3PI9Vlw; 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 e10-20020a170902f10a00b001b53b6b029csi2914841plb.124.2023.08.11.02.26.14; Fri, 11 Aug 2023 02:26:26 -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=e3PI9Vlw; 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 S232691AbjHKIg3 (ORCPT + 99 others); Fri, 11 Aug 2023 04:36:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjHKIg1 (ORCPT ); Fri, 11 Aug 2023 04:36:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 626142737; Fri, 11 Aug 2023 01:36:27 -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-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Sender:Reply-To:Content-ID:Content-Description; bh=cJocosMaFpZJVLW25SbAxt5T2sdLdDBAbE/g/2G0uCE=; b=e3PI9VlwzTl5znPWffVTncxIuc zxr/n6yEjgQC9DwP0iff+gDBqpHgpDYwRIVbmjQT4a+rTUD2hSdrBo+q60rGhqEhU5hAMnynrtb6X c27nSbBss1GPcfuWS0hA0ez2Ots+WbnKpfi2Sl6PFPJDBF1DscqMQJf8oiWbD9q7pbnDeykbMzXpJ 6Hx7KHz0lpC+QIN2NCyiZAsYVU42h4OX8I7O5W4Yn/XincK95Crs9eQV6FS9REIzBoc0uERxbv7C4 MZVyTw7AOq/OTMzZqDpgJOEjsVdV8XZqY9juKbz5sYP1xJZtlvqIQdA+7QLyLN2BcIqNhSlif5Tok vQT3j9ug==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qUNd8-009rjw-26; Fri, 11 Aug 2023 08:36:22 +0000 Date: Fri, 11 Aug 2023 01:36:22 -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> <156807159.5281174.1691742892935.JavaMail.zimbra@nod.at> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <156807159.5281174.1691742892935.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 Fri, Aug 11, 2023 at 10:34:52AM +0200, Richard Weinberger wrote: > ----- 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. ? kmap is a no-op for !highmem. And it will always be way cheaper than bounce buffering for the case where you are actually fed highmem pages.