From: Jan Kara Date: Mon, 20 Feb 2012 16:54:00 +0000 (+0100) Subject: udf: Fix deadlock in udf_release_file() X-Git-Tag: v3.3~23^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6940fe9092e796119af691c7f722c252f4fc524;p=pandora-kernel.git udf: Fix deadlock in udf_release_file() udf_release_file() can be called from munmap() path with mmap_sem held. Thus we cannot take i_mutex there because that ranks above mmap_sem. Luckily, i_mutex is not needed in udf_release_file() anymore since protection by i_data_sem is enough to protect from races with write and truncate. Reported-by: Al Viro Reviewed-by: Namjae Jeon Signed-off-by: Jan Kara Signed-off-by: Al Viro --- Reading git-diff-tree failed