tdb: use tdb_nest_lock() for active 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)
commit0a44584963232b0b1c62e30c9bede0439e68ef7d
tree67efea2058dfec3a558e754ce0835deb62530a84
parent6812d81907793299e874f121174d885f6500f374
tdb: use tdb_nest_lock() for active lock.

Use our newly-generic nested lock tracking for the active 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 4738d474c412cc59d26fcea64007e99094e8b675)
lib/tdb/common/lock.c
lib/tdb/common/open.c