linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] virtio_blk.c: Add documentation for vring_enable_cb()
@ 2010-05-19 15:50 Jes.Sorensen
  2010-05-19 15:50 ` Jes.Sorensen
  0 siblings, 1 reply; 3+ messages in thread
From: Jes.Sorensen @ 2010-05-19 15:50 UTC (permalink / raw)
  To: rusty; +Cc: mst, linux-kernel, Jes Sorensen

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(-)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-19 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-19 15:50 [PATCH] virtio_blk.c: Add documentation for vring_enable_cb() Jes.Sorensen
2010-05-19 15:50 ` Jes.Sorensen
2010-05-19 22:37   ` Michael S. Tsirkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).