Fix: lock nesting order reversed
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 17:32:13 +0000 (12:32 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 7 Jan 2017 17:34:18 +0000 (12:34 -0500)
commit1ea6cc572bffbebf2ef9cbdd1098a35c5d0411aa
tree95f317ea2dc2baa9573913b4bfa2659aec3ddb25
parent98ba050ed140ff29ac98f66dba0e47db70e4a0c5
Fix: lock nesting order reversed

The lttng_consumer_stream lock must nest INSIDE the metadata
cache lock, as indicated in the structure's comments
(see consumer.h:340).

CID 1368314 (#1 of 1): Thread deadlock (ORDER_REVERSAL)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c
This page took 0.026711 seconds and 4 git commands to generate.