util/sparse_free_list: manipulate node pointers using atomic primitives
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 17 Apr 2020 17:42:41 +0000 (20:42 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sat, 18 Apr 2020 12:18:03 +0000 (12:18 +0000)
commitcdc43775917e301a7ca654fcebb94fad08dc4131
tree06300278a665e6ad8b02a4af2a1de96ebf969d01
parent36d2a0eed69b6f584c417bdbe0ea0f4623f1b514
util/sparse_free_list: manipulate node pointers using atomic primitives

Probably doesn't fix anything but those should be accessed in an
atomic way just like the head pointer.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: e4f01eca3b3cd1 ("util: Add a free list structure for use with util_sparse_array")
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4613>
src/util/sparse_array.c