tdb: use tdb_nest_lock() for transaction lock.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:23:51 +0000 (13:53 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 22 Apr 2010 04:23:51 +0000 (13:53 +0930)
commit4ca1b96a70048b2eaa0d12fb5f0fdb54ec396aa3
tree9da87a4b212ff13e5fc3b1ff1ceccd212a72b1bd
parentcfb154dd0f189f37b937e90144c2eb9e66a26420
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>
(Imported from commit e8fa70a321d489b454b07bd65e9b0d95084168de)
lib/tdb/common/lock.c
lib/tdb/common/tdb_private.h