From: Francis Deslauriers Date: Fri, 16 Feb 2018 19:48:49 +0000 (-0500) Subject: Fix: duplicated kernel consumer socket locking X-Git-Tag: v2.11.0-rc1~390 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=cafc2c60ea4893d837fe0e9cb0bbe92c02b8cc46;hp=cafc2c60ea4893d837fe0e9cb0bbe92c02b8cc46;p=lttng-tools.git 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 Signed-off-by: Jérémie Galarneau ---