Dave Chinner dcfcf20512 xfs: provide a inode iolock lockdep class
The XFS iolock needs to be re-initialised to a new lock class before
it enters reclaim to prevent lockdep false positives. Unfortunately,
this is not sufficient protection as inodes in the XFS_IRECLAIMABLE
state can be recycled and not re-initialised before being reused.

We need to re-initialise the lock state when transfering out of
XFS_IRECLAIMABLE state to XFS_INEW, but we need to keep the same
class as if the inode was just allocated. Hence we need a specific
lockdep class variable for the iolock so that both initialisations
use the same class.

While there, add a specific class for inodes in the reclaim state so
that it is easy to tell from lockdep reports what state the inode
was in that generated the report.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
2010-12-23 11:57:13 +11:00
..
2010-07-26 13:16:33 -05:00
2010-05-21 18:31:19 -04:00
2009-06-10 17:07:47 +02:00
2010-10-18 15:08:07 -05:00
2009-12-14 23:08:16 -06:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:07 -05:00
2009-03-29 09:55:42 +02:00
2010-10-18 15:08:07 -05:00
2008-12-01 11:37:35 +11:00
2010-07-26 13:16:44 -05:00
2010-10-18 15:08:07 -05:00
2009-08-31 14:46:22 -05:00
2010-12-16 16:05:51 -06:00
2010-12-16 16:05:51 -06:00
2010-10-18 15:08:06 -05:00
2010-07-26 13:16:33 -05:00
2010-10-18 15:08:07 -05:00
2010-10-18 15:08:02 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00
2010-10-18 15:08:06 -05:00
2009-12-14 23:08:16 -06:00