Messages in this thread | | | From | Jes.Sorensen@redhat ... | Subject | [PATCH] virtio_blk.c: Add documentation for vring_enable_cb() | Date | Wed, 19 May 2010 17:50:48 +0200 |
| |
From: Jes Sorensen <Jes.Sorensen@redhat.com>
Hi,
This patch adds a bit of documentation to vring_enable_cb() to make it crystal clear that the function returns false when there is more work to do and true when the queue is empty.
I wasted several hours trying to figure out why a piece of code wasn't working due to this, and I know others hit the same problem. Hopefully this can save a bit of suffering for others in the future.
Cheers, Jes
Jes Sorensen (1): Add documentation for vring_enable_cb()
drivers/virtio/virtio_ring.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
| |