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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D032C4338F for ; Fri, 23 Jul 2021 05:03:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1C1A660E96 for ; Fri, 23 Jul 2021 05:03:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229808AbhGWEWc (ORCPT ); Fri, 23 Jul 2021 00:22:32 -0400 Received: from verein.lst.de ([213.95.11.211]:36897 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbhGWEWb (ORCPT ); Fri, 23 Jul 2021 00:22:31 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 3D30D67373; Fri, 23 Jul 2021 07:03:02 +0200 (CEST) Date: Fri, 23 Jul 2021 07:03:02 +0200 From: Christoph Hellwig To: Boris Pismenny Cc: Boris Pismenny , dsahern@gmail.com, kuba@kernel.org, davem@davemloft.net, saeedm@nvidia.com, hch@lst.de, sagi@grimberg.me, axboe@fb.com, kbusch@kernel.org, viro@zeniv.linux.org.uk, edumazet@google.com, smalin@marvell.com, boris.pismenny@gmail.com, linux-nvme@lists.infradead.org, netdev@vger.kernel.org, benishay@nvidia.com, ogerlitz@nvidia.com, yorayz@nvidia.com, Boris Pismenny , Ben Ben-Ishay , Or Gerlitz , Yoray Zack Subject: Re: [PATCH v5 net-next 02/36] iov_iter: DDP copy to iter/pages Message-ID: <20210723050302.GA30841@lst.de> References: <20210722110325.371-1-borisp@nvidia.com> <20210722110325.371-3-borisp@nvidia.com> <6f7f96dc-f1e6-99d9-6ab4-920126615302@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6f7f96dc-f1e6-99d9-6ab4-920126615302@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Jul 22, 2021 at 11:23:38PM +0300, Boris Pismenny wrote: > This routine, like other changes in this file, replicates the logic in > memcpy_to_page. The only difference is that "ddp" avoids copies when the > copy source and destinations buffers are one and the same. Now why can't we just make that change to the generic routine? If we can't, why do they not have a saner name documenting what they actually do?