]> git.baikalelectronics.ru Git - kernel.git/commit
virtio: Add ability to detach unused buffers from vrings
authorShirley Ma <mashirle@us.ibm.com>
Fri, 29 Jan 2010 03:19:05 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 23:55:42 +0000 (15:55 -0800)
commit0ae121a1a26c67f81fba1b6cd5e0752782c96153
tree8cecf55980c72085dcc6e6af39bdfc7cccf18b69
parentd1ece04f20ed99103d92c0b762ea3ad13c3a175d
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/virtio/virtio_ring.c
include/linux/virtio.h