From: Jan Kara Date: Mon, 20 Feb 2012 16:49:56 +0000 (+0100) Subject: udf: Fix deadlock in udf_release_file() X-Git-Tag: v3.2.14~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712f04ff3aea5f7cc284df68f93b1eacb5cb0fa2;p=pandora-kernel.git udf: Fix deadlock in udf_release_file() commit a0391a3ae91d301c0e59368531a4de5f0b122bcf upstream. 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: Greg Kroah-Hartman --- Reading git-diff-tree failed