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 20:59:41 +0000 (15:59 -0500)
commita23ca18428f7e2b8bece8d3f47a9c274cf030ec4
tree4574232bf6335b15545a817e57fd8e60f655d8b5
parentc0692b4d7003d3a369395f63710c7a238a3e560c
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.026276 seconds and 4 git commands to generate.