]> 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>
Tue, 4 Sep 2012 00:45:58 +0000 (10:45 +1000)
commit3c1bdc3a034285aebeee696fa1aeeee88c7a6f6c
treeaf0cf8adb2a48ff71ac8e842146f0493468047f8
parentf5e28d0aab4699b4e0acc027af512f89fca25714
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