Thread (11 messages) 11 messages, 4 authors, 2020-03-31

Re: [PATCH v9 1/4] vfs, fdtable: Add fget_task helper

flat view

From: Arnd Bergmann <arnd@arndb.de>
Date: 2020-01-13 15:02:52
Also in: linux-fsdevel, lkml

On Tue, Jan 7, 2020 at 6:59 PM Sargun Dhillon [off-list ref] wrote:
This introduces a function which can be used to fetch a file, given an
arbitrary task. As long as the user holds a reference (refcnt) to the
task_struct it is safe to call, and will either return NULL on failure,
or a pointer to the file, with a refcnt.

This patch is based on Oleg Nesterov's (cf. [1]) patch from September
2018.

[1]: Link: https://lore.kernel.org/r/20180915160423.GA31461@redhat.com (local)

Signed-off-by: Sargun Dhillon <redacted>
Suggested-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Christian Brauner <redacted>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help