[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <af6cda4f-9996-0aad-9278-1d41f824a070@deltatee.com>
Date: Mon, 13 Dec 2021 15:28:54 -0700
From: Logan Gunthorpe <logang@...tatee.com>
To: Chaitanya Kulkarni <chaitanyak@...dia.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-nvme@...ts.infradead.org" <linux-nvme@...ts.infradead.org>,
"linux-block@...r.kernel.org" <linux-block@...r.kernel.org>,
"linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>
Cc: Stephen Bates <sbates@...thlin.com>,
Christoph Hellwig <hch@....de>,
Dan Williams <dan.j.williams@...el.com>,
Jason Gunthorpe <jgg@...pe.ca>,
Christian König <christian.koenig@....com>,
John Hubbard <jhubbard@...dia.com>,
Don Dutile <ddutile@...hat.com>,
Matthew Wilcox <willy@...radead.org>,
Daniel Vetter <daniel.vetter@...ll.ch>,
Jakowski Andrzej <andrzej.jakowski@...el.com>,
Minturn Dave B <dave.b.minturn@...el.com>,
Jason Ekstrand <jason@...kstrand.net>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Xiong Jianxin <jianxin.xiong@...el.com>,
Bjorn Helgaas <helgaas@...nel.org>,
Ira Weiny <ira.weiny@...el.com>,
Robin Murphy <robin.murphy@....com>,
Martin Oliveira <martin.oliveira@...eticom.com>,
Chaitanya Kulkarni <ckulkarnilinux@...il.com>,
Max Gurtovoy <mgurtovoy@...dia.com>
Subject: Re: [PATCH v4 11/23] nvme-pci: convert to using dma_map_sgtable()
On 2021-12-13 3:21 p.m., Chaitanya Kulkarni wrote:
>
>> static blk_status_t nvme_pci_setup_sgls(struct nvme_dev *dev,
>> - struct request *req, struct nvme_rw_command *cmd, int entries)
>> + struct request *req, struct nvme_rw_command *cmd)
>> {
>> struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
>> struct dma_pool *pool;
>> struct nvme_sgl_desc *sg_list;
>> - struct scatterlist *sg = iod->sg;
>> + struct scatterlist *sg = iod->sgt.sgl;
>> + int entries = iod->sgt.nents;
>
> I don't see use of newly added entries variable anywhere in
> nvme_pci_setup_sgls(), what am I missing ?
'entries' is being moved out from the argument list of
nvme_pci_setup_sgls(), so there are already uses in the function that
don't show in the diff.
> Also, type of entries variable should be unsigned int to match
> the iod->sgt.nents.
Sure, I will fix that in the next version.
Thanks for the reviews!
Logan
Powered by blists - more mailing lists