1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00
Volker Lendecke 9395d958d6 pthreadpool: Signal job completion without the pool mutex
This essentially reverts 1c4284c7395f23. We now call an alien function from
within pthreadpool, and we should not hold a mutex during that call. The alien
function could (and pthreadpool_tevent_job_signal actually does) lock a mutex.
We can't guarantee proper lock ordering here, so in theory we could deadlock. I
haven't seen it in the wild yet, but I could imagine that both _parent pieces
in pthreadpool and tevent could trigger such a deadlock.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 30 04:06:20 CEST 2016 on sn-devel-144
2016-08-30 04:06:20 +02:00
..
2015-03-17 11:30:52 +01:00
2012-03-24 17:11:11 +01:00
2016-08-24 01:33:50 +02:00
2016-07-28 05:00:18 +02:00
2016-07-28 05:00:18 +02:00
2016-08-29 22:51:34 +02:00
2015-12-22 02:22:50 +01:00
2015-11-06 13:43:45 +01:00
2015-10-13 01:23:07 +02:00
2014-09-18 20:36:11 +02:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2014-11-25 07:25:44 +01:00
2016-02-23 22:03:16 +01:00
2016-02-23 22:03:16 +01:00
2015-05-06 04:14:14 +02:00
2016-02-23 22:03:16 +01:00
2015-02-13 23:32:07 +01:00
2016-02-23 22:03:16 +01:00
2015-03-17 11:30:52 +01:00
2012-04-17 10:21:02 +02:00
2012-07-18 15:54:20 -07:00
2016-05-04 01:28:23 +02:00
2016-04-15 15:32:11 +02:00
2012-05-15 18:24:10 +02:00
2015-11-06 13:43:45 +01:00
2016-01-10 22:24:17 +01:00
2016-01-10 22:24:17 +01:00
2012-04-19 19:13:45 +02:00