Skip to content

random: convert to using iters, for Al Viro

Jason A. Donenfeld lkml 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 24 repliesIn review
  2. v33 patches 3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3random: convert to using fops->read_iter()drivers/char/random.c+24 -314 replies
2/3random: convert to using fops->write_iter()drivers/char/random.c+35 -320 replies
3/3random: wire up fops->splice_{read,write}_iter()drivers/char/random.c+4 -00 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/3] random: convert to using iters, for Al Viro

Hi Al,

I've incorporated your suggestions into Jens' patches and simplified a lot of the control flow. Could you take a look at these and let me know if it looks sane? In particular, I'm using the property you mentioned in which copy_{to,from}_iter() can take a maximum and do less if the remaining length is too small.

Jason

Jens Axboe (3):
random: convert to using fops->read_iter()
random: convert to using fops->write_iter()
random: wire up fops->splice_{read,write}_iter()

 drivers/char/random.c | 126 +++++++++++++++++++++---------------------
 1 file changed, 63 insertions(+), 63 deletions(-)
Signature · 1 line
2.35.1