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 01:01:06 +0000 (20:01 -0500)
commit9343f28f5a59ca0d85f17103fe286ab8aa173d43
tree1339f2fe0998b297f42f4cda0245b45b464b5446
parent378ea6a26277f6db3c195b2126c5f4d35d270174
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.024654 seconds and 4 git commands to generate.