diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2008-02-10 07:20:05 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-02-10 07:20:05 +0100 |
commit | 8009f9fb3067fef6c2ca0c16f6bac786ae28639d (patch) | |
tree | acf8bbfd2833a63baa9d2194ed30bf7e7dcb3075 /fs/ext4/inode.c | |
parent | allow in-inode EAs on ext4 root inode (diff) | |
download | linux-8009f9fb3067fef6c2ca0c16f6bac786ae28639d.tar.xz linux-8009f9fb3067fef6c2ca0c16f6bac786ae28639d.zip |
ext4: Fix circular locking dependency with migrate and rm.
In order to prevent a circular locking dependency when an unlink
operation is racing with an ext4 migration, we delay taking i_data_sem
until just before switch the inode format, and use i_mutex to prevent
writes and truncates during the first part of the migration operation.
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Mingming Cao <cmm@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions