From: Mathieu Desnoyers Date: Sun, 16 Aug 2015 21:10:22 +0000 (-0400) Subject: Fix: sessiond ust-app session teardown race X-Git-Tag: v2.8.0-rc1~437 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=b161602a7c4040228777c01342ba5ed7737e7df0;hp=b161602a7c4040228777c01342ba5ed7737e7df0;p=lttng-tools.git Fix: sessiond ust-app session teardown race Add a deleted flag within the ust app session which is raised (with ust app session lock held) at delete, and checked within each RCU traversal, again with ust app session lock held. This takes care of races between teardown of an application (unregister) and execution of commands which are accessing the app session concurrently. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---