From: Ian Kent Date: Tue, 20 Feb 2007 21:58:10 +0000 (-0800) Subject: [PATCH] autofs4: check for directory re-create in lookup X-Git-Tag: v2.6.21-rc1~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9ffec48487849bc277de662a6c29aad64653b99;p=pandora-kernel.git [PATCH] autofs4: check for directory re-create in lookup This problem was identified and fixed some time ago by Jeff Moyer but it fell through the cracks somehow. It is possible that a user space application could remove and re-create a directory during a request. To avoid returning a failure from lookup incorrectly when our current dentry is unhashed we need to check if another positive, hashed dentry matching this one exists and if so return it instead of a fail. Signed-off-by: Jeff Moyer Signed-off-by: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed