commit | e325a88f17196f18888f6e1426eb9fe3b4346d28 | [log] [tgz] |
---|---|---|
author | Srinivas Eeda <srinivas.eeda@oracle.com> | Wed Oct 31 16:49:43 2007 -0700 |
committer | Mark Fasheh <mark.fasheh@oracle.com> | Tue Nov 06 15:35:40 2007 -0800 |
tree | 34536cea32f530c0a41df0b8323d1e3a2249a0e6 | |
parent | bc7e97cbdd4bef162e5772c74ee2cc4487a2d997 [diff] |
ocfs2: fix rename vs unlink race If another node unlinks the destination while ocfs2_rename() is waiting on a cluster lock, ocfs2_rename() simply logs an error and continues. This causes a crash because the renaming node is now trying to delete a non-existent inode. The correct solution is to return -ENOENT. Signed-off-by: Srinivas Eeda <srinivas.eeda@oracle.com> Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>