Skip to content

relay: Migrate from relayfs to a generic relay API.

Paul Mundt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sysfs: relay channel buffers as sysfs attributesfs/sysfs/Makefile fs/sysfs/dir.c fs/sysfs/inode.c +2 more+128 -13 replies
2/5relay: Consolidate relayfs core into kernel/relay.c.include/linux/relayfs_fs.h init/Kconfig kernel/Makefile +1 more+934 -00 replies
3/5sysfs: Update relay file support for generic relay API.fs/sysfs/Makefile fs/sysfs/dir.c include/linux/sysfs.h+4 -40 replies
4/5relayfs: Remove relayfs in favour of CONFIG_RELAY.fs/Kconfig fs/Makefile fs/relayfs/Makefile +5 more+0 -12900 replies
5/5relay: relay header cleanup.fs/sysfs/relay.c include/linux/relay.h include/linux/relayfs_fs.h +1 more+283 -2920 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] relay: Migrate from relayfs to a generic relay API.

This is a small patch set for getting rid of relayfs, and moving the core of its functionality to kernel/relay.c. The API is kept consistent for everything but the relayfs-specific bits, meaning people will have to use other file systems to implement relay channel buffers.

There's support for a sysfs relay attribute (resent with a signed-off-by tag and cleaned up description), and it's also trivial to do via debugfs.

Patches are ordered by invasiveness, the first few start out relatively harmless, with the later ones removing relayfs entirely. There's definitely room for cleanup and improvement in the new relay.c, but one thing at a time..

Tested with sysfs. Against current git.

To get an idea of the total amount of changes:

---

 fs/relayfs/Makefile        |    4 
 fs/relayfs/buffers.c       |  190 ---------
 fs/relayfs/buffers.h       |   12 
 fs/relayfs/inode.c         |  581 ----------------------------
 fs/relayfs/relay.c         |  482 -----------------------
 fs/relayfs/relay.h         |    9 
 include/linux/relayfs_fs.h |  290 --------------
 fs/Kconfig                 |   12 
 fs/Makefile                |    1 
 fs/sysfs/Makefile          |    3 
 fs/sysfs/dir.c             |   28 +
 fs/sysfs/inode.c           |    5 
 fs/sysfs/relay.c           |   72 +++
 include/linux/relay.h      |  281 +++++++++++++
 include/linux/relayfs_fs.h |    3 
 include/linux/sysfs.h      |   33 +
 init/Kconfig               |   11 
 kernel/Makefile            |    1 
 kernel/relay.c             |  923 ++++++++++++++++++++++++++++++++++++++++++++-
 19 files changed, 1349 insertions(+), 1592 deletions(-)