From: Mathieu Desnoyers Date: Thu, 4 Aug 2011 18:05:08 +0000 (-0400) Subject: Update ring buffer frontend comment wrt code change X-Git-Tag: v2.0-pre7~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9a0df743d0ee1aef496b7ca94fdf5308b54c8a36;p=lttng-modules.git Update ring buffer frontend comment wrt code change Teardown does not wait for readers anymore: it just decrements the refcount. Signed-off-by: Mathieu Desnoyers --- diff --git a/lib/ringbuffer/ring_buffer_frontend.c b/lib/ringbuffer/ring_buffer_frontend.c index 77356fab..db33d04c 100644 --- a/lib/ringbuffer/ring_buffer_frontend.c +++ b/lib/ringbuffer/ring_buffer_frontend.c @@ -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) {