[ofa-general] Re: [PATCH RFC] sharing userspace IB objects

Michael S. Tsirkin mst at dev.mellanox.co.il
Mon Jul 2 11:46:30 PDT 2007


>  > > I think there are probably bugs
>  > > in the locked_vm accounting in the kernel right now -- it doesn't take
>  > > into account the possibility of passing context fds from one process
>  > > to another.
>  > 
>  > Hmm, might be a good idea to fix the bugs anyway, no?
> 
> Yes, I guess we need to take a reference on the mm structure in
> ib_umem_get() and only drop it after we free the umem.

IMO this would create problems at process exit time.
Maybe set umem->mm at umem_get time, and, in umem_release,
just validate that umem->mm == current->mm?


-- 
MST



More information about the general mailing list