Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp1334348rwl; Thu, 10 Aug 2023 09:36:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IESCkkhMfZspgSttlITu4dbBrh7QW1s4jwLjhOkai3bg27W21mJCpDNTwmYIfv4xXQmtjYP X-Received: by 2002:a17:902:a9c1:b0:1bb:1523:b311 with SMTP id b1-20020a170902a9c100b001bb1523b311mr2235692plr.41.1691685389934; Thu, 10 Aug 2023 09:36:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691685389; cv=none; d=google.com; s=arc-20160816; b=aI7Og787lmsIlnc68DXhR7J+fBUhNU8WWg3kH+W9/pOucUkhxNOKo9DHDXUAtNMpnG GnnBMcP1wLasrRnu1ZrnDeCCDMbexwrf/N1RU0CVIojznJifIvUXxj2ADVwhtW9Bl5N7 lzWjHDC9H0Ucv7cEQPe6qa1lqAH82JdD5/f1OTH2MVDQIka0hWZfOCgc/hLLDHojX/wH w/XwD+3P0g+8tP3x9hFXb6pWrq8oEBzdPLdHptJAmcGO2KZ6pwjBcvNSKSWVucwvf3Bv cI3p1xUZQ1bRHlcYVGx/sTKxU4VTYKtyrD5LVL8dlgfjlvcqmbL4RWfXXfB84y/LKYVd GhhQ== 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=qyZF8HY0Xl26YEVugUEXhFxOZGXZIkl2KFZ9PKe0w+g=; fh=xq2L8vJKCSIjU2utSPdyaByeL0zopCqDqrG4B1rAqnw=; b=ZDeOiCPaBS0gENii6zGh4yRP4tdX4jVwLDYvl+QLBUxYD54nnBSRWdhC35YAZZBE0T xKzPvoAvktbDhlLsnUHWz0sNnNEnAPdL0PTe2MLv7ZE1wSG+Gi7wGJoWfJb6dVGi09xD SjYVkBTbjb1CwNa1uBGkOuy723891XZVoJH7TI2nYbPDBPXzaBBUFhpxnwaYvC39QPeC ZrZcD38qHp4yboIn9IsvPS/gdkZpwpxjypUr9KdZUrxjhdunrvGkvTCj5Vbgt5C9EZbJ oFhc/6gCYVrB5c/eld+G/Smw/qlo/IwtPdyDsltwqKKGLV5Xtq0PCReoXn5jfihqFUrr 2uKA== 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 ky15-20020a170902f98f00b001bba3bfd21asi1653110plb.260.2023.08.10.09.36.16; Thu, 10 Aug 2023 09:36:29 -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 S236654AbjHJQPn convert rfc822-to-8bit (ORCPT + 99 others); Thu, 10 Aug 2023 12:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236593AbjHJQPk (ORCPT ); Thu, 10 Aug 2023 12:15:40 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA07D211B; Thu, 10 Aug 2023 09:15:38 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 76729622F562; Thu, 10 Aug 2023 18:15:37 +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 smA3OYxeUDzS; Thu, 10 Aug 2023 18:15:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 0F795622F56E; Thu, 10 Aug 2023 18:15:37 +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 5mrpLoPTvxi8; Thu, 10 Aug 2023 18:15:36 +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 D925E622F562; Thu, 10 Aug 2023 18:15:36 +0200 (CEST) Date: Thu, 10 Aug 2023 18:15:36 +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: <298860961.5257332.1691684136772.JavaMail.zimbra@nod.at> In-Reply-To: References: <20230810160019.16977-1-richard@nod.at> <20230810160019.16977-2-richard@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: 8dyYm2xXARBKErxuajcdul9nN/entQ== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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" >> Refactor ubi_eba_read_leb_sg() to use kmap_atomic() for sg list >> access. >> Since kmap_atomic() disables preempt a bounce buffer is needed. >> kmap_local_page() is not used to allow easy backporting of this patch >> to older kernels. >> >> 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. Thanks, //richard