tdb: use tdb_nest_lock() for transaction lock.
commite8fa70a321d489b454b07bd65e9b0d95084168de
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 02:07:34 +0000 (17 12:37 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 17 Feb 2010 02:07:34 +0000 (17 12:37 +1030)
tree3cc3c9adab474b3bdd0e87a9e226573b215ee112
parentce41411c84760684ce539b6a302a0623a6a78a72
tdb: use tdb_nest_lock() for transaction lock.

Rather than a boutique lock and a separate nest count, use our
newly-generic nested lock tracking for the transaction lock.

Note that the tdb_have_extra_locks() and tdb_release_extra_locks()
functions have to skip over this lock now it is tracked.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb/common/lock.c
lib/tdb/common/tdb_private.h