diff options
author | David Chinner <david@fromorbit.com> | 2008-09-17 08:51:21 +0200 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-09-17 08:51:21 +0200 |
commit | f9114eba1eb08ee75fd0f1eee780f0290fb3c043 (patch) | |
tree | cfdb27e38eb600f84a4278744b19e1576ca5e7d3 /fs/binfmt_aout.c | |
parent | [XFS] Fix barrier status change detection. (diff) | |
download | linux-f9114eba1eb08ee75fd0f1eee780f0290fb3c043.tar.xz linux-f9114eba1eb08ee75fd0f1eee780f0290fb3c043.zip |
[XFS] Prevent lockdep false positives when locking two inodes.
If we call xfs_lock_two_inodes() to grab both the iolock and the ilock,
then drop the ilocks on both inodes, then grab them again (as
xfs_swap_extents() does) then lockdep will report a locking order problem.
This is a false positive.
To avoid this, disallow xfs_lock_two_inodes() fom locking both inode locks
at once - force calers to make two separate calls. This means that nested
dropping and regaining of the ilocks will retain the same lockdep subclass
and so lockdep will not see anything wrong with this code.
SGI-PV: 986238
SGI-Modid: xfs-linux-melb:xfs-kern:31999a
Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Peter Leckie <pleckie@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/binfmt_aout.c')
0 files changed, 0 insertions, 0 deletions