From: Rusty Russell Date: Mon, 15 Nov 2010 07:24:15 +0000 (+1030) Subject: tdb2: fix tdb_chainlock X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=c5e3f07a30056cb7c3c380bf690f80815ca4b6b1;hp=c5e3f07a30056cb7c3c380bf690f80815ca4b6b1;p=ccan-lca-2011.git tdb2: fix tdb_chainlock We can't enlarge the lock without risking deadlock, so tdb_chainlock() can't simply grab a one-byte lock; it needs to grab the lock we'd need to protect the hash. In theory, tdb_chainlock_read() could use a one-byte lock though. ---