diff options
author | 2009-11-23 07:24:41 -0500 | |
---|---|---|
committer | 2009-11-23 07:24:41 -0500 | |
commit | 49bd22bc4d603a2a4fc2a6a60e156cbea52eb494 (patch) | |
tree | b1a8d6b5be2ff4a72f2274bf01c15922ad9a0e65 /lib/dma-debug.c | |
parent | ext4: fix lock order problem in ext4_move_extents() (diff) | |
download | linux-dev-49bd22bc4d603a2a4fc2a6a60e156cbea52eb494.tar.xz linux-dev-49bd22bc4d603a2a4fc2a6a60e156cbea52eb494.zip |
ext4: fix possible recursive locking warning in EXT4_IOC_MOVE_EXT
If CONFIG_PROVE_LOCKING is enabled, the double_down_write_data_sem()
will trigger a false-positive warning of a recursive lock. Since we
take i_data_sem for the two inodes ordered by their inode numbers,
this isn't a problem. Use of down_write_nested() will notify the lock
dependency checker machinery that there is no problem here.
This problem was reported by Brian Rogers:
http://marc.info/?l=linux-ext4&m=125115356928011&w=1
Reported-by: Brian Rogers <brian@xyzw.org>
Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions