[PATCH v4 0/3] random: convert to using iters, for Al Viro
From: Jason A. Donenfeld
Date: Fri May 20 2022 - 05:45:23 EST
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(-)
--
2.35.1