From: Aneesh Kumar K.V Date: Sun, 10 Feb 2008 06:20:05 +0000 (-0500) Subject: ext4: Fix circular locking dependency with migrate and rm. X-Git-Tag: v2.6.25-rc1~10^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8009f9fb3067fef6c2ca0c16f6bac786ae28639d;p=pandora-kernel.git 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 Signed-off-by: Aneesh Kumar K.V Signed-off-by: Mingming Cao Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed