From: David Goulet Date: Fri, 7 Dec 2012 18:54:44 +0000 (-0500) Subject: Fix: UST app session teardown process X-Git-Tag: v2.1.0~77 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=d42f20df7f4ef656485ebb19c94a35152cb386f7;hp=d42f20df7f4ef656485ebb19c94a35152cb386f7 Fix: UST app session teardown process This patch removes the ht_del of sessions from the delete_ust_app RCU call and puts it in the unregister app function just before the call_rcu is done. To be able to free the sessions in the call rcu, a list is added for which, when in tearing down an application or session, this list is used to get the session reference for deletion. Note that when in the RCU call, we are assured that the list is exclusively accessed thus no need for any locking. Acked-by: Mathieu Desnoyers Signed-off-by: David Goulet ---