diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index bfac09a50a051..7ffd461cbe912 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -1374,12 +1374,6 @@ static ssize_t fuse_dev_do_read(struct fuse_dev *fud, struct file *file, in = &req->in; reqsize = in->h.len; - if (task_active_pid_ns(current) != fc->pid_ns) { - rcu_read_lock(); - in->h.pid = pid_vnr(find_pid_ns(in->h.pid, fc->pid_ns)); - rcu_read_unlock(); - } - /* If request is too large, reply with an error and restart the read */ if (nbytes < reqsize) { req->out.h.error = -EIO;