Messages in this thread |  | | Date | Sat, 27 Jul 2019 17:49:32 +0100 | From | Al Viro <> | Subject | Re: [PATCH v2 1/2] pidfd: add P_PIDFD to waitid() |
| |
On Sat, Jul 27, 2019 at 09:28:40AM -0700, Linus Torvalds wrote:
> is the stupid and straightforward thing, but if you want to be > *clever* you can actually avoid getting a reference to the 'struct > file *" entirely, and do the fd->pid lookup under rcu_read_lock() > instead. It's slightly more complex, but it avoids the fdget/fdput > reference count games entirely.
Yecchhh... Please, don't do the last part - at least not unless we really see that in profiles.
|  |