Skip to content

refcounting improvements in sysfs.

NeilBrown lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3sysfs: simplify handling for s_active refcountfs/sysfs/dir.c fs/sysfs/sysfs.h+16 -466 replies
2/3sysfs: make s_count a kreffs/sysfs/dir.c fs/sysfs/mount.c fs/sysfs/sysfs.h +1 more+18 -121 reply
3/3kref: create karef and use for sysfs_dirent->s_activefs/sysfs/dir.c fs/sysfs/mount.c fs/sysfs/sysfs.h +2 more+64 -71 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] refcounting improvements in sysfs.

This series tidies up the refcount of sysfs_dirents in sysfs, using kref where appropriate and a new karef for s_active. This achieves significant code simplification, especially the first patch.

This is in part inspired by http://lwn.net/Articles/336224/ :-)

NeilBrown

---

NeilBrown (3):
sysfs: simplify handling for s_active refcount
sysfs: make s_count a kref
kref: create karef and use for sysfs_dirent->s_active

 fs/sysfs/dir.c       |   74 ++++++++++++++++++++------------------------------
 fs/sysfs/mount.c     |    3 +-
 fs/sysfs/sysfs.h     |   19 +++++--------
 include/linux/kref.h |   38 ++++++++++++++++++++++++++
 lib/kref.c           |   13 +++++++++
 5 files changed, 90 insertions(+), 57 deletions(-)
Signature · 1 line
Signature