From: Aneesh Kumar K.V Date: Mon, 25 Jul 2011 18:06:32 +0000 (+0000) Subject: fs/9p: Add fid before dentry instantiation X-Git-Tag: v3.1-rc6~30^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5441ae5eb3614d3c28f77073370738a2820c88e4;p=pandora-kernel.git fs/9p: Add fid before dentry instantiation d_instantiate marks the dentry positive. So a parallel lookup and mkdir of the directory can find dentry that doesn't have fid attached. This can result in both the code path doing v9fs_fid_add which results in v9fs_dentry leak. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed