ctdb-locking: Schedule the next possible lock based on per-db limit
authorAmitay Isaacs <amitay@gmail.com>
Thu, 29 May 2014 07:27:32 +0000 (17:27 +1000)
committerVolker Lendecke <vl@samba.org>
Mon, 4 Aug 2014 15:59:52 +0000 (17:59 +0200)
commitc9664b4b17660c03ed96072a9f5392dbb0800f2c
tree1a6218590514d546e8ce16e95c24f87711580c39
parent19b3810b61e4856dc5ab6b8a5a785b836172f01e
ctdb-locking: Schedule the next possible lock based on per-db limit

This prevents searching through active lock requests for every pending
lock request to check if the pending lock request can be scheduled or not.
The locks are scheduled in strict first-in-first-out order.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/server/ctdb_lock.c