Skip to content

nfs: kobject: use generic helpers and ownership

Alexander Aring gfs2 linux-nfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kobject: add kset_type_create_and_add() helperinclude/linux/kobject.h lib/kobject.c+50 -170 replies
2/4kobject: export generic helper opsinclude/linux/kobject.h lib/kobject.c+6 -20 replies
3/4nfs: sysfs: use kset_type_create_and_add()fs/nfs/sysfs.c+3 -260 replies
4/4nfs: sysfs: use default get_ownership() callbackfs/nfs/sysfs.c+1 -02 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGreg Kroah-HartmanBenjamin Coddington
SeriesR-b
1/4A-b
2/4A-b
3/4
4/4

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

Read the v1 thread

Cover letter [PATCH 0/4] nfs: kobject: use generic helpers and ownership

Hi,

I currently have pending patches for fs/dlm (Distributed Lock Manager) subsystem to introduce some helpers to udev. However, it seems it takes more time that I can bring those changes upstream. I put those out now and already figured out that nfs can also take advantage of those changes.

With this patch-series I try to try to reduce my patch-series for DLM and already bring part of it upstream and nfs will be a user of it.

The ownership callback, I think it should be set as the kset_create_and_add() sets this callback as default. I never had any issues with it, but there might be container corner cases that requires those changes?

- Alex

Alexander Aring (4):
kobject: add kset_type_create_and_add() helper
kobject: export generic helper ops
nfs: sysfs: use kset_type_create_and_add()
nfs: sysfs: use default get_ownership() callback

 fs/nfs/sysfs.c          | 30 +++----------------
 include/linux/kobject.h | 10 +++++--
 lib/kobject.c           | 65 ++++++++++++++++++++++++++++++-----------
 3 files changed, 60 insertions(+), 45 deletions(-)
Signature · 1 line
2.43.0