• L
    tty: implement read_iter · dd78b0c4
    Linus Torvalds 提交于
    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: 36e2c742 ("fs: don't allow splice read/write without explicit ops")
    Reported-by: NOliver 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: NLinus Torvalds <torvalds@linux-foundation.org>
    dd78b0c4
tty_io.c 86.7 KB