Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp46286pxv; Tue, 29 Jun 2021 23:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEMj9uaFZh6OCIC9tD1zmY9/GM2rFiSMoqKKnzwDzv355f36EkWwZ4/vPogkMQxJ+75+H4 X-Received: by 2002:a17:907:7b84:: with SMTP id ne4mr5867447ejc.350.1625033017417; Tue, 29 Jun 2021 23:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625033017; cv=none; d=google.com; s=arc-20160816; b=QR4SZn7gdYW9WBdPSocSMFBU+QiSoxg8fsNKGump84HEEjHTcbL/7885FGYsuvcZV2 Y1nUZ9tlRZIfR47obPjCh3ySNLh8N4j0voKHEM/O0Z5b9CoTmKlPx8adZ8lfVgVnoNeB QXtDFUGhxQ2QcouyBBku1bN7C/B8mT/iJm90iVxEHi5CAtJQH6ivNVCsNX4wen7rEive JfKdYqBZrKhrQP7QVCbmXbHa02thoO3ZnR8NBZZ3xAvPD/mfp2NK0zhLF97qGOkik3if +T+DFA0IEN7B5XHm3sN6G/YWnHx758YsrKJFFWrefgN3BdXqt0Ec2KPPAxMKp9OcdJNy W1ew== 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=nFNxLUAvWfNTtWGxP+XvQJ2mzZBCSlv+blczOMbhtrw=; b=lApVg7z1Ni3CUWJifBsjmGliort29QpfQ55koGnd+iyjS4jrOnjtFGeDPsDx7UuK2Y DGY9HDAbPPgsR5bkmN0Ld8RmyuOndMbp5wVuwdHNovU0b3kYcShva+LgNevO95dzGfra +v6Olx2uSJHqL11A0DNgwfHQn2MAFh1O9GlvEdz1mUj+whcy5pg92WRWEUSoPCMcRXyf xsj5ulKeYsSV90wCdb9R6qD6X25tPRaOqRyaEbWwRMquosj8mKGaz7kxY/fbt8G0CN1i GAi5YFH/I6BP8OHvl1E/zEt6eVrRX3GmGDdvneAYoKH3l55xHcyLACt74URmu+dh50qn 5Nsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=R0N55prA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si12121506eda.124.2021.06.29.23.03.14; Tue, 29 Jun 2021 23:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=R0N55prA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231587AbhF3GCT (ORCPT + 99 others); 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-kernel@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.