With exports, another layer of locking gets introduced. In rename,
the following is the case:
lock_rename (nfs_rename)
lock_rename (odf_rename)
Since the locks belong to different file systems, it's not a real issue.
Hence turning lockdep off momentarily is safe here (maybe not the
cleanest solution).
Signed-off-by: Rachita Kothiyal <rachita@fsl.cs.sunysb.edu>
/* this should never happen */
BUG_ON(new_odfdentry->d_inode);
+ /* see Documentation/filesystems/unionfs/issues.txt */
+ lockdep_off();
lock_rename(old_dir, new_dir);
current->fsuid = 0;
current->fsgid = 0;
old_odfdentry, new_dir->d_inode,
new_odfdentry);
unlock_rename(old_dir, new_dir);
+ lockdep_on();
current->fsuid = olduid;
current->fsgid = oldgid;
dput(new_odfdentry);