aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2011-12-10 02:30:48 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2012-01-12 11:35:09 -0800
commit608620c3e7c26618bbef00ce070e7d0bbfb9cc37 (patch)
treedb558a6aefb1967b3e4f7fa9d9d2a456d91f00c2 /samples
parent2481cbcad1ba76a928c74c2e8cab67d8c77823ab (diff)
downloadkernel_samsung_smdk4412-608620c3e7c26618bbef00ce070e7d0bbfb9cc37.zip
kernel_samsung_smdk4412-608620c3e7c26618bbef00ce070e7d0bbfb9cc37.tar.gz
kernel_samsung_smdk4412-608620c3e7c26618bbef00ce070e7d0bbfb9cc37.tar.bz2
udf: Fix deadlock when converting file from in-ICB one to normal one
commit d2eb8c359309ec45d6bf5b147303ab8e13be86ea upstream. During BKL removal in 2.6.38, conversion of files from in-ICB format to normal format got broken. We call ->writepage with i_data_sem held but udf_get_block() also acquires i_data_sem thus creating A-A deadlock. We fix the problem by dropping i_data_sem before calling ->writepage() which is safe since i_mutex still protects us against any changes in the file. Also fix pagelock - i_data_sem lock inversion in udf_expand_file_adinicb() by dropping i_data_sem before calling find_or_create_page(). Reported-by: Matthias Matiak <netzpython@mail-on.us> Tested-by: Matthias Matiak <netzpython@mail-on.us> Reviewed-by: Namjae Jeon <linkinjeon@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions