From b1ebcb1b6b6403034867682c9469aaec3d04e76c Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 14 Jun 2013 08:16:14 -0400 Subject: [PATCH] rculfhash: document destroy context limitation Signed-off-by: Mathieu Desnoyers --- urcu/rculfhash.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index 727f5c9..23bd1ce 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -176,7 +176,8 @@ struct cds_lfht *cds_lfht_new(unsigned long init_size, * Return 0 on success, negative error value on error. * Threads calling this API need to be registered RCU read-side threads. * cds_lfht_destroy should *not* be called from a RCU read-side critical - * section. + * section. It should *not* be called from call_rcu thread context + * neither. * In userspace RCU 0.7.x, for QSBR RCU flavor, cds_lfht_destroy() has a * side-effect: it puts the caller thread in "online" state. This will * be fixed in userspace RCU 0.8.x. -- 2.34.1