Skip to content

xfsprogs: generic serialisation primitives

Chandan Babu R linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 15 repliesIn review

Changes in v2 from the cover letter

1. Provide m4 macros to detect availability of liburcu on the system where xfsprogs is being built.
2. Initialize inode log item's spin lock.
3. Swap order of arguments provided to atomic[64]_[add|sub]().

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xfsprogs: introduce liburcu supportconfigure.ac copy/Makefile copy/xfs_copy.c +18 more+69 -155 replies
2/5libxfs: add spinlock_t wrapperinclude/Makefile include/libxfs.h include/spinlock.h +7 more+40 -51 reply
3/5atomic: convert to uatomicinclude/atomic.h+54 -115 replies
4/5libxfs: add kernel-compatible completion APIinclude/Makefile include/completion.h include/libxfs.h +1 more+64 -04 replies
5/5libxfs: add wrappers for kernel semaphoresinclude/Makefile include/libxfs.h include/sema.h +1 more+38 -00 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchEric Sandeen
1/5R-b
2/5R-b
3/5R-b
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/5] xfsprogs: generic serialisation primitives

This patchset provides userspace equivalents for spinlocks, atomics, completion and semaphores that the shared libxfs code depends on in the kernel.

I have executed fstests on a 4k block sized filesystem which has reflink and rmap enabled.

Changelog:
V1 -> V2:
1. Provide m4 macros to detect availability of liburcu on the system where xfsprogs is being built.
2. Initialize inode log item's spin lock.
3. Swap order of arguments provided to atomic[64]_[add|sub]().

Dave Chinner (5):
xfsprogs: introduce liburcu support
libxfs: add spinlock_t wrapper
atomic: convert to uatomic
libxfs: add kernel-compatible completion API
libxfs: add wrappers for kernel semaphores

 configure.ac               |  3 ++
 copy/Makefile              |  3 +-
 copy/xfs_copy.c            |  3 ++
 db/Makefile                |  3 +-
 debian/control             |  2 +-
 growfs/Makefile            |  3 +-
 include/Makefile           |  3 ++
 include/atomic.h           | 65 +++++++++++++++++++++++++++++++-------
 include/builddefs.in       |  4 ++-
 include/completion.h       | 61 +++++++++++++++++++++++++++++++++++
 include/libxfs.h           |  3 ++
 include/platform_defs.h.in |  1 +
 include/sema.h             | 35 ++++++++++++++++++++
 include/spinlock.h         | 25 +++++++++++++++
 include/xfs_inode.h        |  1 +
 include/xfs_mount.h        |  2 ++
 include/xfs_trans.h        |  1 +
 libfrog/workqueue.c        |  3 ++
 libxfs/init.c              |  7 +++-
 libxfs/libxfs_priv.h       |  9 +++---
 libxfs/logitem.c           |  4 ++-
 libxfs/rdwr.c              |  2 ++
 logprint/Makefile          |  3 +-
 m4/Makefile                |  1 +
 m4/package_urcu.m4         | 24 ++++++++++++++
 mdrestore/Makefile         |  3 +-
 mkfs/Makefile              |  2 +-
 repair/Makefile            |  2 +-
 repair/prefetch.c          |  9 ++++--
 repair/progress.c          |  4 ++-
 scrub/Makefile             |  3 +-
 scrub/progress.c           |  2 ++
 32 files changed, 265 insertions(+), 31 deletions(-)
 create mode 100644 include/completion.h
 create mode 100644 include/sema.h
 create mode 100644 include/spinlock.h
 create mode 100644 m4/package_urcu.m4
Signature · 1 line
2.30.2