namei: make put_link() RCU-safe
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 8 May 2015 00:32:22 +0000 (20:32 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 11 May 2015 12:13:13 +0000 (08:13 -0400)
commit6548fae2eca6b66c7257af6663fdbdf5a50745fd
tree9bd27e6603841fa48feca5a053b8c8b1ecd5129c
parentecc087ff14352aed52b8e775b4511e7f9cfc64ec
namei: make put_link() RCU-safe

very simple - just make path_put() conditional on !RCU.
Note that right now it doesn't get called in RCU mode -
we leave it before getting anything into stack.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c