udf: Protect udf_file_aio_write from possible races
commit8754a3f718f08dc21b3c5eccd044f612d4bc1ab1
authorJan Kara <jack@suse.cz>
Tue, 16 Nov 2010 13:33:48 +0000 (16 14:33 +0100)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 16:03:57 +0000 (6 17:03 +0100)
tree40d2b8af8e64f9041f19e8d93df0ab81e6b8054e
parent9db9f9e31d7661dff35a75ed01ff9fc0d6acdaf8
udf: Protect udf_file_aio_write from possible races

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>
fs/udf/file.c