Skip to content
Commit 68f0d9d9 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

vfs: make d_path() get the root path under RCU

This avoids the spinlocks and refcounts in the d_path() sequence too
(used by /proc and various other entities).  See commit 8b19e341

 for
the equivalent getcwd() system call path.

And unlike getcwd(), d_path() doesn't copy the result to user space, so
I don't need to fear _that_ particular bug happening again.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3272c544
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment