]> git.baikalelectronics.ru Git - kernel.git/commit
random: wire up fops->splice_{read,write}_iter()
authorJens Axboe <axboe@kernel.dk>
Thu, 19 May 2022 23:31:37 +0000 (17:31 -0600)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 20 May 2022 16:26:48 +0000 (18:26 +0200)
commitcfb3366f3a09d1d021b87795865d7637d295be7b
treec192b8f8575a827b88853c72f465918da4eba61e
parente6df8dd1bbcb4d67a0ee3f053bd07ce3bb0f93e2
random: wire up fops->splice_{read,write}_iter()

Now that random/urandom is using {read,write}_iter, we can wire it up to
using the generic splice handlers.

Fixes: ec25677859f2 ("fs: don't allow splice read/write without explicit ops")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[Jason: added the splice_write path. Note that sendfile() and such still
 does not work for read, though it does for write, because of a file
 type restriction in splice_direct_to_actor(), which I'll address
 separately.]
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c