Skip to content

Commit

Permalink
Revert "proc: don't allow async path resolution of /proc/thread-self …
Browse files Browse the repository at this point in the history
…components"

This reverts commit 0d4370c.

No longer needed, as the io-wq worker threads have the right identity.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Feb 24, 2021
1 parent 37d1e2e commit 9e8d9e8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion fs/proc/self.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static const char *proc_self_get_link(struct dentry *dentry,
* Not currently supported. Once we can inherit all of struct pid,
* we can allow this.
*/
if (current->flags & PF_IO_WORKER)
if (current->flags & PF_KTHREAD)
return ERR_PTR(-EOPNOTSUPP);

if (!tgid)
Expand Down
7 changes: 0 additions & 7 deletions fs/proc/thread_self.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ static const char *proc_thread_self_get_link(struct dentry *dentry,
pid_t pid = task_pid_nr_ns(current, ns);
char *name;

/*
* Not currently supported. Once we can inherit all of struct pid,
* we can allow this.
*/
if (current->flags & PF_IO_WORKER)
return ERR_PTR(-EOPNOTSUPP);

if (!pid)
return ERR_PTR(-ENOENT);
name = kmalloc(10 + 6 + 10 + 1, dentry ? GFP_KERNEL : GFP_ATOMIC);
Expand Down

0 comments on commit 9e8d9e8

Please sign in to comment.