rculfhash: add assertions on node alignment
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 14 Feb 2013 16:36:43 +0000 (11:36 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Feb 2013 00:59:01 +0000 (19:59 -0500)
commit2f943cd7ef7e14ddd9dfc6c8a98db798c460eb33
treed9e0b2c2a8c1ce06ec210bc09633e0ba14d0853d
parentffa11a1830c532f3b052146eb9f0dd450cb2a0f2
rculfhash: add assertions on node alignment

I've had a report of someone running into issues with the RCU lock-free
hash table by embedding the struct cds_lfht_node into a packed structure
by mistake, thus not respecting alignment requirements stated in
urcu/rculfhash.h. Assertions on "replace" and "add" operations should
catch this, but I notice that we should add assertions on the
REMOVAL_OWNER_FLAG to cover all possible misalignments.

Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rculfhash.c
This page took 0.026157 seconds and 4 git commands to generate.