Re: [PATCH rdma-next 00/13] Elastic Fabric Adapter (EFA) driver

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

 



On Wed, Jan 09, 2019 at 06:03:04PM +0200, Gal Pressman wrote:
> On 09-Jan-19 17:36, Jason Gunthorpe wrote:>> We can also just fail mmaps for
> pages that are still used by a different
> >> ucontext instead of deferring the PD deallocation.
> > 
> > How do you know if they are still used?
> 
> Store all mapped BAR pages per device, every mmap to a page that still exists in
> our database will fail (unless it's from the same ucontext).
> Dealloc ucontext will remove all pages associated to the ucontext so other users
> could mmap it.

Seems reasonable, but the tracking seems a bit complicated as you need
a refcount for every bar page.

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux