Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp1347262ybb; Fri, 29 Mar 2019 02:42:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyX3636ZhhQBMv5vQDnXfmPck39/ifSvAYkYiTGNTMA8ENuiVC8zawdTvy1ZtSDpMayJyQG X-Received: by 2002:a63:4383:: with SMTP id q125mr42029274pga.370.1553852522201; Fri, 29 Mar 2019 02:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553852522; cv=none; d=google.com; s=arc-20160816; b=rBTihqsmEGJ+2GaLiF/3jXL3CN9PFnOsn4neBUCjIMYEWZT6irx0Pwcl/vxx38HcSn lzBxF0lck7zSYWlvDD0hL0wrRJTHQX1FW/7J9shIjCbdunxTXy5fD6gMcTobiS/xrbFN wYv8/RuRWj8HK8Gdg7p6qGpBiSDfHFUQTlB6LeHoaYDxWZFe75S1OKSfOoUbCq2HzMiF xBsBo+slI+uIsrJ5SFERm/CVWYwGKgaaR02nLZNfJlFouDCnLDzjzW3tR6QSe+Y4MxgX wAPPEZmWl97FHki8BDdOVL31xg9LtTKN3LaJPVc8IV4u7aCC9iRwzMkxqBDG6MZwW2Ux pYuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=UqD7KQpC2Q6OSONr0aK3ErBm2UEDd0xfy6kjO3kwT50=; b=UI91wxndyL/YoTB7LpeZsyt1P3Yx9fu1k42tG/hAJg1ZdlKzAU4W3/iGTMyiMFc0+m XKr99rLwW7NAyp5Ev/ebhN/yxzDAetM6rhJV6sgTcKpf72bkt6OyejfnndMGSU6ymD+I y8x6YPZMvRdLRtKaC+pRqnTq28S9lqLJklH/hfp9744HDd9l3m2wshpsOs7X5IF3xJND NdEbsOntGLHUwavBLP52eoj0lQJI765hvjR1lzUsYam8dlelUM4tkEcN7M8J6aZmBQfu RVO/ofUOh9IDrZO0hogyjcnNCltE8CtKZUpDq40qeHZhiI4m6gW5RA0+R8Pk01aeWOEh RUtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CnIIlDxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn11si1479332plb.205.2019.03.29.02.41.46; Fri, 29 Mar 2019 02:42:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=CnIIlDxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728796AbfC2Jkw (ORCPT + 99 others); Fri, 29 Mar 2019 05:40:52 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:25957 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726590AbfC2Jkv (ORCPT ); Fri, 29 Mar 2019 05:40:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1553852450; x=1585388450; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=UqD7KQpC2Q6OSONr0aK3ErBm2UEDd0xfy6kjO3kwT50=; b=CnIIlDxN11oUpb6D35jtkXajhfbH7UC3BMumeJxkrp6U+fkFcp/ubIP/ jPCnzW+SBgtUhOYBKdPY/p6CEgR8ZPSYFyVKZt9eCRaHgfWUHvbdzXxSD pjyN8x5EwoSqj11CWdpFvZQqyYAAFy5VUGPnZ4eJJEWO+ZIKYmnb2Ykuo k=; X-IronPort-AV: E=Sophos;i="5.60,284,1549929600"; d="scan'208";a="393629002" Received: from iad6-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-67b371d8.us-east-1.amazon.com) ([10.124.125.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Mar 2019 09:40:49 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-67b371d8.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x2T9ejNO116429 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 29 Mar 2019 09:40:48 GMT Received: from EX13D19EUB003.ant.amazon.com (10.43.166.69) by EX13MTAUEA001.ant.amazon.com (10.43.61.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 29 Mar 2019 09:40:47 +0000 Received: from [10.95.75.73] (10.43.162.118) by EX13D19EUB003.ant.amazon.com (10.43.166.69) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 29 Mar 2019 09:40:44 +0000 Subject: Re: [PATCH] lib/scatterlist: Remove leftover from sg_page_iter comment To: Mukesh Ojha , CC: Jason Gunthorpe References: <1553800491-28583-1-git-send-email-galpress@amazon.com> <8e313491-8859-d47f-f104-6d2d783cd63a@codeaurora.org> From: Gal Pressman Message-ID: Date: Fri, 29 Mar 2019 12:40:40 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0 MIME-Version: 1.0 In-Reply-To: <8e313491-8859-d47f-f104-6d2d783cd63a@codeaurora.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.43.162.118] X-ClientProxiedBy: EX13D17UWB001.ant.amazon.com (10.43.161.252) To EX13D19EUB003.ant.amazon.com (10.43.166.69) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-Mar-19 11:36, Mukesh Ojha wrote: > > On 3/29/2019 12:44 AM, Gal Pressman wrote: >> Commit d901b2760dc6 ("lib/scatterlist: Provide a DMA page iterator") >> added the sg DMA iterator but a leftover remained in the sg_page_iter >> documentation, remove it. >> >> Cc: Jason Gunthorpe >> Signed-off-by: Gal Pressman >> --- >>   include/linux/scatterlist.h | 10 +++++----- >>   1 file changed, 5 insertions(+), 5 deletions(-) >> >> diff --git a/include/linux/scatterlist.h b/include/linux/scatterlist.h >> index b4be960c7e5d..30a9a55c28ba 100644 >> --- a/include/linux/scatterlist.h >> +++ b/include/linux/scatterlist.h >> @@ -340,11 +340,11 @@ int sg_alloc_table_chained(struct sg_table *table, int >> nents, >>    * sg page iterator >>    * >>    * Iterates over sg entries page-by-page.  On each successful iteration, you >> - * can call sg_page_iter_page(@piter) to get the current page and its dma >> - * address. > > > It took me a while till i exact found what you meant by left over. > > could have been more specific in the commit,but > > Looks  good to me to be removed. > > Reviewed-by: Mukesh Ojha You're right, should've been more specific. Should I resubmit? > > -Mukesh > > >>   @piter->sg will point to the sg holding this page and >> - * @piter->sg_pgoffset to the page's page offset within the sg. The iteration >> - * will stop either when a maximum number of sg entries was reached or a >> - * terminating sg (sg_last(sg) == true) was reached. >> + * can call sg_page_iter_page(@piter) to get the current page. >> + * @piter->sg will point to the sg holding this page and @piter->sg_pgoffset to >> + * the page's page offset within the sg. The iteration will stop either when a >> + * maximum number of sg entries was reached or a terminating sg >> + * (sg_last(sg) == true) was reached. >>    */ >>   struct sg_page_iter { >>       struct scatterlist    *sg;        /* sg holding the page */