Fix: duplicated kernel consumer socket locking
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 16 Feb 2018 19:48:49 +0000 (14:48 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 16 Feb 2018 21:18:42 +0000 (16:18 -0500)
commit414362e7d0c194a19d02654a861584a3efaf9614
tree000772e61e396dcc352ad6c587a0d7936d74b5c6
parent2aa4e02e2cd3709bad4993a3c6258df42d909a29
Fix: duplicated kernel consumer socket locking

Commit 9d1103e introduced a bug causing a deadlock on snapshot record.
Function consumer_snapshot_channel is called with the lock held causing
the pthread_mutex_lock call inside to hang forever.

Because consumer_snapshot_channel now acquires the lock before using the
socket. No need to acquire the lock before calling the function.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/kernel.c
This page took 0.024792 seconds and 4 git commands to generate.