namei: make unlazy_walk and terminate_walk handle nd->stack, add unlazy_link
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 9 May 2015 16:55:43 +0000 (12:55 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 15 May 2015 05:06:01 +0000 (01:06 -0400)
commit7973387a2f629c6ed0283920da44c6539c69aca0
treedaf4b33198c9d95cee21a35bf6a39244760a9ffa
parent0450b2d120ed9e6d4ac7a6eade0ad116f69b88f7
namei: make unlazy_walk and terminate_walk handle nd->stack, add unlazy_link

We are almost done - primitives for leaving RCU mode are aware of nd->stack
now, a new primitive for going to non-RCU mode when we have a symlink on hands
added.

The thing we are heavily relying upon is that *any* unlazy failure will be
shortly followed by terminate_walk(), with no access to nameidata in between.
So it's enough to leave the things in a state terminate_walk() would cope with.

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