From 6a8ecb1c59f0f37bdb80dc41a91a87290ce0bb18 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 6 Jun 2013 20:11:10 -0400 Subject: [PATCH] rcuja: document destroy requirement Signed-off-by: Mathieu Desnoyers --- urcu/rcuja.h | 1 + 1 file changed, 1 insertion(+) 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)); -- 2.34.1