r21879: Move process_blocking_lock_queue to a timed event.
authorVolker Lendecke <vlendec@samba.org>
Mon, 19 Mar 2007 21:52:27 +0000 (21:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:18:42 +0000 (12:18 -0500)
commit496dbdf4350ffc5f53c9f8f734d2c29b312ff11b
tree5bd6688396dd585c4ecacab160b46bcb15496063
parent3fdef9433a9e08064b32e34a16ce62a60ce144fb
r21879: Move process_blocking_lock_queue to a timed event.

The idea is that we have blocking.c:brl_timeout as a timed
event that is present whenever we do have a blocking lock
pending. It fires brl_timeout_fn() which calls
process_blocking_lock_queue().

Whenever we make changes to blocking_lock_queue, we trigger
a recalc_brl_timeout() which sets a new brl_timout event if
necessary. This makes the call to
blocking_locks_timeout_ms() in setup_select_timeout()
unnecessary, this is implicitly done in
event_add_to_select_args() from the timed events.

Volker
(This used to be commit 7e31b8ce21de803ac1f8967967393341a3f44ac3)
source3/smbd/blocking.c
source3/smbd/process.c