Re: [PATCH v5 09/29] iommufd: Do not unmap an owned iopt_area

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

 



On Wed, May 28, 2025 at 02:08:45PM -0300, Jason Gunthorpe wrote:
> Fundamentally this is supporting accesses that don't have an unmap op
> callback.

Ah, I see.

> It could be done differently, with the below just create your access
> with a null ops. Prevent mdev drivers from doing this when they create
> their accesses. We don't need to optimize this failure case so it is
> fine to scan the xarray. All we really need to do here is eliminate
> the WARN_ON.

Yes. That approach looks much cleaner.

Will replace the iopt_pin_pages patch.

Thanks
Nicolin




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux