> > > 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 _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
