summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2ff0b11)
While the notification subsystem all runs within a single thread,
the iteration over the triggers hash table must be protected using
the RCU read-side lock since the RCU worker may resize the hash
table while the iteration is performed.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
struct cds_lfht_iter iter;
struct lttng_trigger_ht_element *trigger_ht_element;
struct cds_lfht_iter iter;
struct lttng_trigger_ht_element *trigger_ht_element;
cds_lfht_for_each_entry(state->triggers_ht, &iter, trigger_ht_element,
node) {
int ret = handle_notification_thread_command_unregister_trigger(
cds_lfht_for_each_entry(state->triggers_ht, &iter, trigger_ht_element,
node) {
int ret = handle_notification_thread_command_unregister_trigger(
error_occurred = true;
}
}
error_occurred = true;
}
}
return error_occurred ? -1 : 0;
}
return error_occurred ? -1 : 0;
}