diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-01 11:15:54 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-09-17 18:55:11 -0700 |
commit | b0a580dd65f1595d915a1612180c622d2461e2cd (patch) | |
tree | a0322992b2efada1b7604ae97c1753f48e2cd40b /drivers/ps3 | |
parent | 780c94e0c7f4878574120b1e1d42ffc17a5d20a0 (diff) |
xfs: use separate lock classes for realtime metadata inode ILOCKs
Realtime metadata files are not quite regular files because userspace
can't access the realtime bitmap directly, and because we take the ILOCK
of the rt bitmap file while holding the ILOCK of a realtime file. The
double nature of inodes confuses lockdep, so up until now we've created
lockdep subclasses to help lockdep keep things straight.
We've gotten away with using lockdep subclasses because there's only two
rt metadata files, but with the coming addition of realtime rmap and
refcounting, we'd need two more subclasses, which is a lot of class bits
to burn on a side feature.
Therefore, switch to manually setting the lockdep class of the rt
metadata ILOCKs. In the next patch we'll remove the rt-related ILOCK
subclasses.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'drivers/ps3')
0 files changed, 0 insertions, 0 deletions