ctdb-locking: Add per database queues for pending and active lock requests
authorAmitay Isaacs <amitay@gmail.com>
Thu, 24 Jul 2014 05:56:41 +0000 (15:56 +1000)
committerVolker Lendecke <vl@samba.org>
Mon, 4 Aug 2014 18:23:45 +0000 (20:23 +0200)
commit88f6a6c188b8e43f710c50a9c1f88af660772e3d
treee6c42efbaa5d96956611eaec008de28a56b270df
parentf73adff737c8fd3ab797de35bf1463359ce801cd
ctdb-locking: Add per database queues for pending and active lock requests

This avoids traversing a single pending queue which is quite expensive
when there are lots of pending lock requests.  This seems to happen
quite a lot on a loaded cluster for notify_index.tdb.

Adding per database queues avoids the need to traverse pending queue
for that database if there are already the maximum number of active
lock requests.

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Aug  4 20:23:45 CEST 2014 on sn-devel-104
ctdb/include/ctdb_private.h
ctdb/server/ctdb_lock.c