diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 10:35:47 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-12 10:35:47 -0700 |
commit | 8b19e34188a32d63a7da94ea8a3f5e39b0c66050 (patch) | |
tree | b6affbe820569551bebfd39cc07965855080d2c1 /kernel | |
parent | 5762482f5496cb1dd86acd2aace3ea25d1404e1f (diff) | |
download | linux-8b19e34188a32d63a7da94ea8a3f5e39b0c66050.tar.gz linux-8b19e34188a32d63a7da94ea8a3f5e39b0c66050.tar.bz2 linux-8b19e34188a32d63a7da94ea8a3f5e39b0c66050.zip |
vfs: make getcwd() get the root and pwd path under rcu
This allows us to skip all the crazy spinlocks and reference count
updates, and instead use the fs sequence read-lock to get an atomic
snapshot of the root and cwd information.
We might want to make the rule that "prepend_path()" is always called
with the RCU lock held, but the RCU lock nests fine and this is the
minimal fix.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions