udf: Protect udf_file_aio_write from possible races
authorJan Kara <jack@suse.cz>
Tue, 16 Nov 2010 13:33:48 +0000 (14:33 +0100)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 16:03:57 +0000 (17:03 +0100)
Code doing conversion from INICB file to a normal file in udf_file_aio_write()
is not protected by any lock from other code modifying the inode. Use
i_alloc_sem for that.

Reported-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Jan Kara <jack@suse.cz>

No differences found