]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] Fix hang after disallowed rename across directory quota domains
authorDave Chinner <david@fromorbit.com>
Wed, 3 Dec 2008 22:09:34 +0000 (09:09 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Fri, 5 Dec 2008 04:39:13 +0000 (15:39 +1100)
commit16b0061f871a7119f278b845a89d4bcac5cf6b70
tree8c2cad9d20c5153a3eaa0b7f0b9259ac9a4fd676
parent04aaae7092d235f1cc412c8f839a05d46b4c183b
[XFS] Fix hang after disallowed rename across directory quota domains

When project quota is active and is being used for directory tree
quota control, we disallow rename outside the current directory
tree. This requires a check to be made after all the inodes
involved in the rename are locked. We fail to unlock the inodes
correctly if we disallow the rename when the target is outside the
current directory tree. This results in a hang on the next access
to the inodes involved in failed rename.

Reported-by: Arkadiusz Miskiewicz <arekm@maven.pl>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Tested-by: Arkadiusz Miskiewicz <arekm@maven.pl>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/xfs_rename.c