From: Mathieu Desnoyers Date: Fri, 7 Jun 2013 00:11:10 +0000 (-0400) Subject: rcuja: document destroy requirement X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6a8ecb1c59f0f37bdb80dc41a91a87290ce0bb18;p=urcu.git rcuja: document destroy requirement Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/rcuja.h b/urcu/rcuja.h index 421e838..4570f1a 100644 --- a/urcu/rcuja.h +++ b/urcu/rcuja.h @@ -147,6 +147,7 @@ struct cds_ja *cds_ja_new(unsigned int key_bits) * on the Judy array while it is being destroyed (ensured by the caller). * There is no need for the @rcu_free_node_cb callback to wait for grace * periods, since there are no more concurrent users of the Judy array. + * RCU read-side lock should _not_ be held when calling this function. */ int cds_ja_destroy(struct cds_ja *ja, void (*free_node_cb)(struct cds_ja_node *node));