s3: Avoid starving locks when many processes die at the same time
authorVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2010 11:28:53 +0000 (12:28 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 16 Feb 2010 15:39:50 +0000 (16:39 +0100)
commit8136b31a24716a405c5e29f00d291e3979bc939a
tree32812f776546d05391e8f51ebf8c1076ac7d949a
parentf373961ff38f0d9f6b7ef866b6cb30f653fc76b7
s3: Avoid starving locks when many processes die at the same time

In g_lock_unlock we have a little race between the process_exists and
messaging_send call: We only send to 5 waiters now, they all might have died
between us checking their existence and sending the message. This change makes
g_lock_lock retry at least once every minute.
source3/lib/g_lock.c