Fix: acquire stream lock during kernel metadata snapshot
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 11 Sep 2018 00:09:12 +0000 (20:09 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 17 Sep 2018 21:46:46 +0000 (17:46 -0400)
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 <jeremie.galarneau@efficios.com>
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>

No differences found
This page took 0.026823 seconds and 5 git commands to generate.