mbox series

[PATCHSET,v1.0,0/3] xfs: refactor realtime meta inode locking

Message ID 167243866880.712531.9794913817759933297.stgit@magnolia (mailing list archive)
Headers show
Series xfs: refactor realtime meta inode locking | expand

Message

Darrick J. Wong Dec. 30, 2022, 10:17 p.m. UTC
Hi all,

Replace all the open-coded locking of realtime metadata inodes with a
single rtlock function that can lock all the pieces that the caller
wants in a single call.  This will be important for maintaining correct
locking order later when we start adding more realtime metadata inodes.

If you're going to start using this mess, you probably ought to just
pull from my git trees, which are linked below.

This is an extraordinary way to destroy everything.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=refactor-rt-locking

xfsprogs git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfsprogs-dev.git/log/?h=refactor-rt-locking
---
 fs/xfs/libxfs/xfs_bmap.c     |    7 +----
 fs/xfs/libxfs/xfs_rtbitmap.c |   57 +++++++++++++++++++++++++++++++++++++++
 fs/xfs/libxfs/xfs_rtbitmap.h |   17 ++++++++++++
 fs/xfs/scrub/common.c        |    9 +++---
 fs/xfs/scrub/fscounters.c    |    4 +--
 fs/xfs/xfs_bmap_util.c       |    5 +--
 fs/xfs/xfs_fsmap.c           |    4 +--
 fs/xfs/xfs_inode.c           |    3 +-
 fs/xfs/xfs_inode.h           |   13 +++------
 fs/xfs/xfs_rtalloc.c         |   62 ++++++++++++++++++++++++++++++------------
 10 files changed, 135 insertions(+), 46 deletions(-)