diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-01-19 10:49:19 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-01-20 16:48:47 -0800 |
commit | dd78b0c483e33225e0e0782b0ed887129b00f956 (patch) | |
tree | 4c44382f91a326c8c3990e7949fc8445e57a5f58 /drivers/tty/n_tty.c | |
parent | 3b830a9c34d5897be07176ce4e6f2d75e2c8cfd7 (diff) | |
download | linux-dd78b0c483e33225e0e0782b0ed887129b00f956.tar.gz linux-dd78b0c483e33225e0e0782b0ed887129b00f956.tar.bz2 linux-dd78b0c483e33225e0e0782b0ed887129b00f956.zip |
tty: implement read_iter
Now that the ldisc read() function takes kernel pointers, it's fairly
straightforward to make the tty file operations use .read_iter() instead
of .read().
That automatically gives us vread() and friends, and also makes it
possible to do .splice_read() on ttys again.
Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops")
Reported-by: Oliver Giles <ohw.giles@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
0 files changed, 0 insertions, 0 deletions