RE: [PATCH v4 07/17] iommufd: PFN handling for iopt_pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Jason Gunthorpe <jgg@xxxxxxxxxx>
> Sent: Tuesday, November 15, 2022 1:25 AM
> 
> On Fri, Nov 11, 2022 at 11:09:08AM +0000, Tian, Kevin wrote:
> > <...2nd part>
> >
> > > From: Jason Gunthorpe <jgg@xxxxxxxxxx>
> > > Sent: Tuesday, November 8, 2022 8:49 AM
> > > +
> > > +/* pfn_reader_user is just the pin_user_pages() path */
> > > +struct pfn_reader_user {
> > > +	struct page **upages;
> > > +	size_t upages_len;
> > > +	unsigned long upages_start;
> > > +	unsigned long upages_end;
> > > +	unsigned int gup_flags;
> > > +	int locked;
> >
> > document what locked==-1/0/1 means
> 
> +       /*
> +        * 1 means mmget() and mmap_read_lock(), 0 means only mmget(), -1
> is
> +        * neither
> +        */
> 
> 
> > > +/* Process a single span in the access_itree */
> >
> > in all storages.
> 
> +/* Process a single span to load it from the proper storage */
> 

with your replies:

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux