On Sat, May 26, 2018 at 01:04:06AM +0100, Al Viro wrote: > + pid_update_inode(task, inode); > d_set_d_op(dentry, &pid_dentry_operations); > d_add(dentry, inode); > - /* Close the race of the process dying before we return the dentry */ > - if (pid_revalidate(dentry, 0)) > - return 0; > -out: > - return -ENOENT; > + return 0; > } ACK this. I never understood what race is prevented if process can exit after pid_revalidate().