]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio/console: Add a failback for unstealable pipe buffer
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 9 Aug 2012 12:30:50 +0000 (21:30 +0900)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 20 Sep 2012 00:14:50 +0000 (10:14 +1000)
commit2c70fad92a273e7652e0c454e3c64b8c8e1d38bf
tree5a6f60fc9deb9f71c1b0249c40184e43ac7ca4c7
parenta2e5de018c855fc7f57fa43d0c3045bd5896cd12
virtio/console: Add a failback for unstealable pipe buffer

Add a failback memcpy path for unstealable pipe buffer.
If buf->ops->steal() fails, virtio-serial tries to
copy the page contents to an allocated page, instead
of just failing splice().

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c