From: Linus Torvalds Date: Thu, 12 Sep 2013 17:35:47 +0000 (-0700) Subject: vfs: make getcwd() get the root and pwd path under rcu X-Git-Tag: v3.12-rc1~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b19e34188a32d63a7da94ea8a3f5e39b0c66050;p=pandora-kernel.git 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 --- Reading git-diff-tree failed