From: Mathieu Desnoyers Date: Wed, 19 Aug 2015 21:44:59 +0000 (-0700) Subject: Fix: sessiond vs consumerd push/get metadata deadlock X-Git-Tag: v2.8.0-rc1~428 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=c585821bc78955b3d747fcd733aa1d2b81a3258e;hp=c585821bc78955b3d747fcd733aa1d2b81a3258e Fix: sessiond vs consumerd push/get metadata deadlock We need to unlock the registry while we push metadata to break a circular dependency between the consumerd metadata lock and the sessiond registry lock. Indeed, pushing metadata to the consumerd awaits that it gets pushed all the way to relayd, but doing so requires grabbing the metadata lock. If a concurrent metadata request is being performed by consumerd, this can try to grab the registry lock on the sessiond while holding the metadata lock on the consumer daemon. Those push and pull schemes are performed on two different bidirectionnal communication sockets. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau ---