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)
committerMichael Adam <obnox@samba.org>
Wed, 10 Mar 2010 12:22:32 +0000 (13:22 +0100)
commita0168577d40af93065b8beb2c023fa2062e939f0
tree47e4211c01e6e4f7123482ea46114b92a437a290
parentb880f85b3b5b74bf1a6404703ba7be762a7a3a0c
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