udf: Protect all modifications of LVID with s_alloc_mutex
commit949f4a7c08bc4a050eae7aeeac3e6d019d1feafb
authorJan Kara <jack@suse.cz>
Wed, 20 Oct 2010 16:49:20 +0000 (20 18:49 +0200)
committerJan Kara <jack@suse.cz>
Thu, 6 Jan 2011 16:03:55 +0000 (6 17:03 +0100)
treec017198a51ce2404c119fbe5bd8f497154efb0bc
parentd664b6af609ecf5e7dcedf92f0bf188e3a29b3e0
udf: Protect all modifications of LVID with s_alloc_mutex

udf_open_lvid() and udf_close_lvid() were modifying LVID without
s_alloc_mutex. Since they can be called from remount, the modification
could race with other filesystem modifications of LVID so protect them
by s_alloc_mutex just to be sure.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/super.c