[ofa-general] Re: [PATCH 1/3] Infiniband: make ehca_pd use struct pid pointer rather than pid_t
Hoang-Nam Nguyen
HNGUYEN at de.ibm.com
Tue Mar 18 10:09:22 PDT 2008
> > Reason for above checking is to prevent a child process releasing
> > a resource that the parent process has created and still wants to use.
> > Do you think that's something we can generalize into ib_core?
> Clearly if we want that check then it should be in the core uverbs
> module. But I'm not sure why we would want that check -- I don't see
> any realistic scenario where that would cause problems, and it seems
> at least as likely that the check would break an app that
> intentionally does something clever.
Right, above checking is based on a very simple policy "creator of a
resource is also the owner in term of releasing it" and will not cover
other customized patterns. We had a case - believe on sles9, in which
a child process manipulated/released resources from parent one, and
it was not easy to find the bug.
Wrt/ your actual question: we can remove the tgid stuff from ehca kernel
code. When do you expect me to send a patch at latest?
Nam
More information about the general
mailing list