virtio/console: Allocate scatterlist according to the current pipe size
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 9 Aug 2012 12:31:20 +0000 (21:31 +0900)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 28 Sep 2012 05:35:12 +0000 (15:05 +0930)
commit8ca84a50e5b39487ea1de8809d0ee1c8474f6a5c
tree3e015a3c54606b1db785f9f1266f8d5133cc1982
parentd55cb6cf143ae16eaa415baab520b8eaf4a1012f
virtio/console: Allocate scatterlist according to the current pipe size

Allocate scatterlist according to the current pipe size.
This allows splicing bigger buffer if the pipe size has
been changed by fcntl.

Changes in v2:
 - Just a minor fix for avoiding a confliction with previous patch.

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