cifs: build_path_from_dentry() race fix
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 17 Jul 2011 03:37:20 +0000 (23:37 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 17 Jul 2011 03:37:20 +0000 (23:37 -0400)
commitdc137bf553dbb6855bd7efc34fedcd03102455f7
treeab1fefc7da26bb86655a28651c4eafb56d741ea1
parent3110df800c4de2724624d46e6bed27efc5e9a707
cifs: build_path_from_dentry() race fix

deal with d_move() races properly; rename_lock read-retry loop,
rcu_read_lock() held while walking to root, d_lock held over
subtraction from namelen and copying the component to stabilize
->d_name.

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