virtio: console: introduce a get_inbuf helper to fetch bufs from in_vq
authorAmit Shah <amit.shah@redhat.com>
Mon, 18 Jan 2010 13:45:03 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:38 +0000 (14:22 +1030)
commita3cde44908429e52b2ec052ad5a70ef60e1f2d56
tree5470aabeb5fcb10c5372b4771ea7d4c48746446e
parente27b519807e04d950802cb89f7b22933d8d2f837
virtio: console: introduce a get_inbuf helper to fetch bufs from in_vq

This makes taking locks around the get_buf vq operation easier, as well
as complements the add_inbuf() operation.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c