]> 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>
Wed, 22 Aug 2012 00:47:10 +0000 (10:47 +1000)
commit75a671a5233fb6589f2f6ad02b5b72c6aa36c755
treea2697fc6088f0447018f1ec47691d17abf2ebea3
parentbe46274047b142b6f0c4b0ec38e68d08ec5dfd57
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>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c