vfs: don't copy things to user space holding the rcu readlock
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 18:57:01 +0000 (11:57 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Sep 2013 18:57:01 +0000 (11:57 -0700)
Oops.  That wasn't very smart.  We don't actually need the RCU lock any
more by the time we copy the cwd string to user space, but I had
stupidly surrounded the whole thing with it.

Introduced by commit 8b19e34188a3 ("vfs: make getcwd() get the root and
pwd path under rcu")

Is-a-big-hairy-idiot: Linus Torvalds <torvalds@linux-foundation.org>

fs/dcache.c

diff --cc fs/dcache.c
Simple merge