From: Rusty Russell Date: Mon, 15 Nov 2010 07:25:45 +0000 (+1030) Subject: tdb2: fix coalesce race #3 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=06a5b1a852c207a5172922e39d8effab0dd17b91;hp=06a5b1a852c207a5172922e39d8effab0dd17b91;p=ccan tdb2: fix coalesce race #3 When we're coalescing, we need to drop the lock on the current free list, as we've enlarged the block and it may now belong in a different list. Unfortunately (as shown by repeated tdbtorture -n 8) another coalescing run can do the coalescing while we've dropped the lock. So for this case, we use the TDB_COALESCING_MAGIC flag so it doesn't look free. ---