[PATCH] xfs: Re-initialise lockdep context for all inodes in reclaim
Christoph Hellwig
hch at infradead.org
Thu May 27 07:21:38 CDT 2010
On Thu, May 27, 2010 at 11:59:06AM +1000, Dave Chinner wrote:
> From: Dave Chinner <dchinner at redhat.com>
>
> We re-initialise the lockdep context for inode iolocks when dropping an inode,
> but not when we delete an inode. Now that we can reclaim inodes from a shrinker,
> we can get get false lockdep warnings about inode iolock inversions during
> reclaim of deleted inodes. Hence we need to re-initialise the iolock in the
> delete path as well.
clear_inode also gets called when we delete an inode, so at least
the rationale for this isn't quite right. It seems like we re-acquire
new lockdep dependecies between clear_inode and destroy_inode that your
shrinker doesn't like. What lockdep report do you see?
More information about the xfs
mailing list