vfs: do_last(): make exit RCU safe

Allow returning from do_last() with LOOKUP_RCU still set on the "out:" and
"exit:" labels.

Signed-off-by: Miklos Szeredi <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Miklos Szeredi 2012-05-21 17:30:06 +02:00 • committed by Al Viro
commit e276ae672f

View file

@ -2383,7 +2383,7 @@ common:
out:
if (want_write)
mnt_drop_write(nd->path.mnt);
path_put(&nd->path);
terminate_walk(nd);
return filp;
exit_mutex_unlock: