[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <458b5dce-e130-6608-119a-63ccf6bd1eae@deltatee.com>
Date: Tue, 25 Oct 2022 09:37:35 -0600
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>
Cc: Christoph Hellwig <hch@....de>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
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>,
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>,
Ralph Campbell <rcampbell@...dia.com>,
Stephen Bates <sbates@...thlin.com>
Subject: Re: [PATCH v11 6/9] block: set FOLL_PCI_P2PDMA in
__bio_iov_iter_get_pages()
On 2022-10-24 19:23, Chaitanya Kulkarni wrote:
> /*
>> * Each segment in the iov is required to be a block size multiple.
>> * However, we may not be able to get the entire segment if it spans
>> @@ -1217,8 +1221,9 @@ static int __bio_iov_iter_get_pages(struct bio *bio, struct iov_iter *iter)
>> * result to ensure the bio's total size is correct. The remainder of
>> * the iov data will be picked up in the next bio iteration.
>> */
>> - size = iov_iter_get_pages2(iter, pages, UINT_MAX - bio->bi_iter.bi_size,
>> - nr_pages, &offset);
>> + size = iov_iter_get_pages(iter, pages,
>> + UINT_MAX - bio->bi_iter.bi_size,
>> + nr_pages, &offset, gup_flags);
>
> nit, 3rd param in above call fits on the first line ? plz check :-
>
> iov_iter_get_pages(iter, pages, UINT_MAX - bio->bi_iter.bi_size,
> nr_pages, &offset, gup_flags);
Oh, yup, this just fits. I'll queue up the fix for if I send v12.
Logan
Powered by blists - more mailing lists