From: Jan Kara Date: Thu, 6 Aug 2009 22:27:27 +0000 (+0200) Subject: udf: Fix possible corruption when close races with write X-Git-Tag: v2.6.32-rc1~699^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbc8cc33529b0e0e55ae0ff077b8cb0b71d54c7a;p=pandora-kernel.git udf: Fix possible corruption when close races with write When we close a file, we remove preallocated blocks from it. But this truncation was not protected by i_mutex and thus it could have raced with a write through a different fd and cause crashes or even filesystem corruption. Signed-off-by: Jan Kara --- Reading git-diff-tree failed