From: Aneesh Kumar K.V Date: Wed, 30 Jun 2010 13:48:50 +0000 (+0530) Subject: fs/9p: Prevent parallel rename when doing fid_lookup X-Git-Tag: v2.6.36-rc1~588^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a534c8d15b1f1d0f861fc2bb9e0529bd8486ec3f;p=pandora-kernel.git fs/9p: Prevent parallel rename when doing fid_lookup During fid lookup we need to make sure that the dentry->d_parent doesn't change so that we can safely walk the parent dentries. To ensure that we need to prevent cross directory rename during fid_lookup. Add a per superblock rename_sem rw_semaphore to prevent parallel fid lookup and rename. Signed-off-by: Aneesh Kumar K.V Signed-off-by: Venkateswararao Jujjuri Signed-off-by: Eric Van Hensbergen --- Reading git-diff-tree failed