diff options
author | Jan Kara <jack@suse.cz> | 2011-12-10 02:30:48 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-01-09 13:52:08 +0100 |
commit | d2eb8c359309ec45d6bf5b147303ab8e13be86ea (patch) | |
tree | 4725da2f9f5728b41960cff7b628d0997812504c /include/linux/atmel-pwm-bl.h | |
parent | 7b0b0933a3ff6052addf4d49ea99f75ab27df2d0 (diff) | |
download | blackbird-op-linux-d2eb8c359309ec45d6bf5b147303ab8e13be86ea.tar.gz blackbird-op-linux-d2eb8c359309ec45d6bf5b147303ab8e13be86ea.zip |
udf: Fix deadlock when converting file from in-ICB one to normal one
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().
CC: stable@kernel.org
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>
Diffstat (limited to 'include/linux/atmel-pwm-bl.h')
0 files changed, 0 insertions, 0 deletions