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.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS 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 81FD9C11F65 for ; Wed, 30 Jun 2021 06:00:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6327461CA5 for ; Wed, 30 Jun 2021 06:00:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbhF3GCT (ORCPT ); Wed, 30 Jun 2021 02:02:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhF3GCS (ORCPT ); Wed, 30 Jun 2021 02:02:18 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3FBC061766; Tue, 29 Jun 2021 22:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=nFNxLUAvWfNTtWGxP+XvQJ2mzZBCSlv+blczOMbhtrw=; b=R0N55prAO3zLbTqQhgAmx003Sw aeqDP/5/F3mlOSHmZtockBl+26v3UsBc3Yw8VzZbXMHjS7wMJlVxoDR+PsPxTTdY4sN4hi/zykiq6 BRIXUSl1ofEXw9zQL1oyuNorLtTNEnYMM9aIG66eKVIGV5RYi0Gcs0Ks79CYqRIH8xBMzYpC3WjRF U/NsOAlzbExbSEIJeh6FbeTk3+LuV8y0pqbGU6rs9Yf9jr1BJYZ1mwNcMz++CJ+QpwmdQFZMOzsw7 CuB9b3eNbhIV0v7TyvfYLBJ61q56heSjvCdLHYwIXBKPPg440cJvSLmYyylID9d2HFINfFyr1awlx 5qU0SVHQ==; Received: from hch by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1lyTFf-004xig-Mb; Wed, 30 Jun 2021 05:59:17 +0000 Date: Wed, 30 Jun 2021 06:59:11 +0100 From: Christoph Hellwig To: Leon Romanovsky Cc: Doug Ledford , Jason Gunthorpe , Maor Gottlieb , Dennis Dalessandro , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Mike Marciniszyn , Yishai Hadas , Zhu Yanjun Subject: Re: [PATCH rdma-next v1 1/2] lib/scatterlist: Fix wrong update of orig_nents Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On Tue, Jun 29, 2021 at 11:40:01AM +0300, Leon Romanovsky wrote: > 2. Add a new field total_nents to reflect the total number of entries > in the table. This is required for the release flow (sg_free_table). > This filed should be used internally only by scatterlist. No, please don't bloat the common structure. > + /* The fields below should be used internally only by > + * scatterlist implementation. > + */ And this is not the way kernel comments work.