Skip to content

Allow access to sysfs attributes without mem allocations.

NeilBrown lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 2 repliesIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2sysfs/kernfs: allow attributes to request write buffer be pre-allocated.fs/kernfs/file.c fs/sysfs/file.c include/linux/kernfs.h +1 more+71 -220 replies
2/2sysfs/kernfs: make read requests on pre-alloc files use the buffer.fs/kernfs/file.c fs/sysfs/file.c+49 -130 replies
2/2sysfs/kernfs: make read requests on pre-alloc files use the buffer.fs/kernfs/file.c fs/sysfs/file.c+49 -130 replies

Reviews trailers per patch

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

PatchTejun Heo
SeriesR-b
1/2R-b
2/2R-b R-b
2/2R-b R-b

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

Read the v3 thread

Cover letter [PATCH 0/2 V3] Allow access to sysfs attributes without mem allocations.

Hi Greg,
please consider these two patches for a future release. They now have

and I've addressed Tejun's final nits.

Thanks Tejun for your review and comments.

As soon as they appear in an -rc1, I'll submit updates to md to use the new functionality for the -rc2.

Thanks,
NeilBrown

---

NeilBrown (2):
sysfs/kernfs: allow attributes to request write buffer be pre-allocated. sysfs/kernfs: make read requests on pre-alloc files use the buffer.

 fs/kernfs/file.c       |   73 +++++++++++++++++++++++++++++++++---------------
 fs/sysfs/file.c        |   57 ++++++++++++++++++++++++++++++++-----
 include/linux/kernfs.h |    8 +++++
 include/linux/sysfs.h  |    9 ++++++
 4 files changed, 116 insertions(+), 31 deletions(-)
Signature · 1 line
Signature