Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1348269rwl; Thu, 10 Aug 2023 09:49:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHb3lZrc5AHY2ow3/BdtPxwMAqVopqP4976RUigfryyvhsAqGiII/TmNmhaK1C5WH/2M43U X-Received: by 2002:a05:6830:18fa:b0:6b9:c7de:68e0 with SMTP id d26-20020a05683018fa00b006b9c7de68e0mr2793037otf.29.1691686184568; Thu, 10 Aug 2023 09:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691686184; cv=none; d=google.com; s=arc-20160816; b=DwcZiTSn85bgrv7h8ruRdhQY8I0h15Yr9JXODf4Isiltt8I4d014h7lb6NDjWGPlyd SRDFw2J48HXlUA4RYQ0zlNBGHMc5UmknWr6K6w3ghMf850QpD/a6s1vzsa962D7NNwKY p9ZWuoONkRaXR7WTXu6p9KpKEgnacyc8t6fSAQHr1AmItLMWxuwrq/Vmv7x3Dh4cXRph m2oYgPoKTlBGXqLA9owI87VzwXtZmlcJMKDB1nShlci4r571/WJx70K0cUUinpoZswts BKoYf3CCkZaTX58ZtYAugLJbHZXMoc4SNbggKeln2E77G3Ggd/oVHd/2Js6bp9g70Gk2 CDjw== 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=nzbm7zQ6piDxhfyPXbFOtMIzi1rH9tl9eRtCZrp6e/g=; fh=zcQzPM8MYgo1JXPbZRWaS6yEprvwvxT9njAHfDv+RJ0=; b=Cc6JFrCCw16ngNwYrzfm159eXT/kxvLBrlVDigHWm7BT5PuLZ1racXLtc8pmwCAZMM /BKOQCM7JwgthUOv0g8HALd2VENSjzhYpnk+yMpjf/qbbUXRQfICUKgck3zQQmIpYAv2 0GRwSlOpmx8e3ggISUS+fv706ORdBxjha+B8qr9DPOjlzoFVq+f8Dcx72KSYw9WrbqKo p99u6LDTUHn35lUYMe7pM6x/DJyXwdCJszN24KrswyORQ+oU4BRtj/aRb6ywKvnOpg68 V3OYXENY/d8NCdlvG5Do4W+rfRokKOz5fZjkxsr+g1RGWswUUSZ7iDZCogbK7F9xVAER O/Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=0tuO6XmD; 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 y5-20020a655a05000000b005652bd27e80si1878180pgs.588.2023.08.10.09.49.32; Thu, 10 Aug 2023 09:49:44 -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=0tuO6XmD; 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 S236751AbjHJQVu (ORCPT + 99 others); Thu, 10 Aug 2023 12:21:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236675AbjHJQVm (ORCPT ); Thu, 10 Aug 2023 12:21:42 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 03A8F270A; Thu, 10 Aug 2023 09:21:38 -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=nzbm7zQ6piDxhfyPXbFOtMIzi1rH9tl9eRtCZrp6e/g=; b=0tuO6XmD/1avgiWMDtNwlVC9G2 mO72eTVDQn19DyCZkHq0Gk0RSvpuoXidwIkEvJn0/WVgOfSx1/TFzcCSxJsIOJ6p1vCg1KGEzsXEu QjMsO+P+W3ACg2gwHJFi3gRy6QUPFvrgNprH54dILqMZ2A+9oneHnyCEW+DzL69zRqEDzvu7XuRQX uCXUxNamWuxzQUkst1DRE5y/wbFjnHuJ5VKINnWvHGShkpE6PYAhiOrN1HzEQyrhmMfuUma7d37x0 QUxtcAib1rzB992eb7lcU+MVGVqZZWZLI9bVUukHCV+NjpSmyQjjfur6XMdrrpslKX532GYZ1cy1P lbQdzGfQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1qU8Pl-008AuS-1j; Thu, 10 Aug 2023 16:21:33 +0000 Date: Thu, 10 Aug 2023 09:21:33 -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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <298860961.5257332.1691684136772.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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 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?