From: Jérémie Galarneau Date: Tue, 11 Sep 2018 00:09:12 +0000 (-0400) Subject: Fix: acquire stream lock during kernel metadata snapshot X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=fa27abe8c16d7d47a901a8905e7cfd08c2e366d7;hp=fa27abe8c16d7d47a901a8905e7cfd08c2e366d7 Fix: acquire stream lock during kernel metadata snapshot The stream lock is not taken when interacting with the kernel metadata stream that is created at the time a snapshot is taken. This was noticed while reviewing the code for an unrelated reason, so there is no known problem caused by this. Nevertheless, this is incorrect as the stream is globally visible in the consumer. Moreover, the stream was not cleaned-up which can cause a leak whenever a metadata snapshot fails. Signed-off-by: Jérémie Galarneau Signed-off-by: Jonathan Rajotte ---