Update ring buffer frontend comment wrt code change
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Aug 2011 18:05:08 +0000 (14:05 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 4 Aug 2011 18:05:08 +0000 (14:05 -0400)
Teardown does not wait for readers anymore: it just decrements the
refcount.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lib/ringbuffer/ring_buffer_frontend.c

index 77356fab5b260b16201a42229ec7c7496a058395..db33d04cba8dc7ba8f23d4b90ee0658cbe1888c4 100644 (file)
@@ -698,11 +698,11 @@ void channel_release(struct kref *kref)
  * @chan: channel to destroy
  *
  * Holds cpu hotplug.
- * Call "destroy" callback, finalize channels, wait for readers to release their
- * reference, then destroy ring buffer data. Note that when readers have
- * completed data consumption of finalized channels, get_subbuf() will return
- * -ENODATA. They should release their handle at that point.
- * Returns the private data pointer.
+ * Call "destroy" callback, finalize channels, and then decrement the
+ * channel reference count.  Note that when readers have completed data
+ * consumption of finalized channels, get_subbuf() will return -ENODATA.
+ * They should release their handle at that point.  Returns the private
+ * data pointer.
  */
 void *channel_destroy(struct channel *chan)
 {
This page took 0.032622 seconds and 4 git commands to generate.