diff options
| author | Jan Kara <[email protected]> | 2012-02-20 16:49:56 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2012-02-29 20:53:48 +0000 |
| commit | a0391a3ae91d301c0e59368531a4de5f0b122bcf (patch) | |
| tree | 26425274ff44d43a1a369bf91c7cc5a78756b30d /fs/jbd2/commit.c | |
| parent | udf: Fix file entry logicalBlocksRecorded (diff) | |
| download | kernel-a0391a3ae91d301c0e59368531a4de5f0b122bcf.tar.gz kernel-a0391a3ae91d301c0e59368531a4de5f0b122bcf.zip | |
udf: Fix deadlock in udf_release_file()
udf_release_file() can be called from munmap() path with mmap_sem held. Thus
we cannot take i_mutex there because that ranks above mmap_sem. Luckily,
i_mutex is not needed in udf_release_file() anymore since protection by
i_data_sem is enough to protect from races with write and truncate.
CC: [email protected] (2.6.38 & later)
Reported-by: Al Viro <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
