]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix directory inode iolock lockdep false positive
authorDave Chinner <dchinner@redhat.com>
Thu, 27 Feb 2014 05:51:39 +0000 (16:51 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 27 Feb 2014 05:51:39 +0000 (16:51 +1100)
commitc19444585c67f4fcb36ddc05ec257df7e66b6d45
tree494837b23f0f9c4a867537e684903b7f135d9ee4
parentd67abece8511735cb2d1e79fe4ed9844841613d9
xfs: fix directory inode iolock lockdep false positive

The change to add the IO lock to protect the directory extent map
during readdir operations has cause lockdep to have a heart attack
as it now sees a different locking order on inodes w.r.t. the
mmap_sem because readdir has a different ordering to write().

Add a new lockdep class for directory inodes to avoid this false
positive.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iops.c