]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: make d_path() get the root path under RCU
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 20:24:55 +0000 (13:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 20:24:55 +0000 (13:24 -0700)
commita4718b0ee0e5bbe84e04259deb68b441123fae7b
tree2e416905bafd3e87a6b6eda8837d5fefe143b19b
parentc50bc0608b1c481dd588ed6a52fe00b894653e05
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 59ebeeaee584 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: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c