Skip to content

sysfs lazification.

Eric W. Biederman linux-fsdevel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 53 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13sysfs: Update sysfs_setxattr so it updates secdata under the sysfs_mutexfs/sysfs/inode.c+29 -125 replies
2/13sysfs: Rename sysfs_d_iput to sysfs_dentry_iputfs/sysfs/dir.c+2 -21 reply
3/13sysfs: Use dentry_ops instead of directly playing with the dcachefs/sysfs/dir.c+46 -271 reply
4/13sysfs: Simplify sysfs_chmod_file semanticsfs/sysfs/file.c+1 -93 replies
5/13sysfs: Simplify iattr time assignmentsfs/sysfs/inode.c+3 -61 reply
6/13sysfs: Fix locking and factor out sysfs_sd_setattrfs/sysfs/inode.c fs/sysfs/sysfs.h+33 -203 replies
7/13sysfs: Update s_iattr on link and unlink.fs/sysfs/dir.c+18 -03 replies
8/13sysfs: Nicely indent sysfs_symlink_inode_operationsfs/sysfs/symlink.c+4 -41 reply
9/13sysfs: Implement sysfs_getattr & sysfs_permissionfs/sysfs/dir.c fs/sysfs/inode.c fs/sysfs/symlink.c +1 more+54 -175 replies
10/13sysfs: In sysfs_chmod_file lazily propagate the mode change.fs/sysfs/file.c+8 -231 reply
11/13sysfs: Gut sysfs_addrm_start and sysfs_addrm_finishfs/sysfs/dir.c fs/sysfs/sysfs.h+4 -892 replies
12/13sysfs: Propagate renames to the vfs on demandfs/namei.c fs/sysfs/dir.c fs/sysfs/inode.c +2 more+32 -16210 replies
13/13sysfs: Factor out sysfs_rename from sysfs_rename_dir and sysfs_move_dirfs/sysfs/dir.c fs/sysfs/sysfs.h+32 -334 replies

Reviews trailers per patch

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

PatchTejun HeoSerge Hallyn
SeriesA-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b A-b
1/13A-b A-b
2/13A-b A-b
3/13A-b A-b
4/13A-b A-b
5/13A-b A-b
6/13A-b
7/13A-b A-b
8/13A-b A-b
9/13A-b
10/13A-b A-b
11/13A-b A-b
12/13A-b
13/13A-b A-b A-b

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/13] sysfs lazification.

The sysfs code updates the vfs caches immediately when the sysfs data structures change causing a lot of unnecessary complications. The following patchset untangles that beast. Allowing for simpler more straight forward code, the removal of a hack from the vfs to support sysfs, and human comprehensible locking on sysfs.

Most of these patches have already been reviewed and acked from the last time I had time to work on sysfs.

In net the patches look like:

 fs/namei.c            |   22 ---
 fs/sysfs/dir.c        |  388 ++++++++++++++++---------------------------------
 fs/sysfs/file.c       |   41 +----
 fs/sysfs/inode.c      |  178 ++++++++++++++---------
 fs/sysfs/symlink.c    |   11 +-
 fs/sysfs/sysfs.h      |    9 +-
 include/linux/namei.h |    1 -
 7 files changed, 256 insertions(+), 394 deletions(-)

Eric