The rcu read lock must be held by the caller during a call to
ust_metadata_channel_statedump. An assertion and a comment are added.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: Ia57a140d51470cc43cf62d36c9b4b552e1c17191
/*
* Should be called with session registry mutex held.
+ *
+ * RCU read lock must be held by the caller.
*/
int ust_metadata_channel_statedump(struct ust_registry_session *session,
struct ust_registry_channel *chan)
{
int ret;
+ ASSERT_RCU_READ_LOCKED();
+
/* Don't dump metadata events */
if (chan->chan_id == -1U)
return 0;