]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Jun 2022 12:11:18 +0000 (14:11 +0200)
commit2177cef53ec97dd51d7e8b70d5ada2650fa988f1
tree2e48e915d846483984d7b816bec51c74f4273fb3
parent35db2a073118eb163dc1f99af570600355479967
random: wire up fops->splice_{read,write}_iter()

commit 79025e727a846be6fd215ae9cdb654368ac3f9a6 upstream.

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

Fixes: 36e2c7421f02 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/random.c