virtio: Add ability to detach unused buffers from vrings
authorShirley Ma <mashirle@us.ibm.com>
Mon, 18 Jan 2010 13:45:23 +0000 (19:15 +0530)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 24 Feb 2010 03:52:27 +0000 (14:22 +1030)
commitc021eac4148c16bf53baa0dd14e8ebee6f39dab5
tree558db2ede74488606614d6e7e277f9914e38fbc1
parent69740c8ba878f58bc3c71f74618fc2cd1da990da
virtio: Add ability to detach unused buffers from vrings

There's currently no way for a virtio driver to ask for unused
buffers, so it has to keep a list itself to reclaim them at shutdown.
This is redundant, since virtio_ring stores that information.  So
add a new hook to do this.

Signed-off-by: Shirley Ma <xma@us.ibm.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c
include/linux/virtio.h