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>
(cherry picked from commit cdc43775917e301a7ca654fcebb94fad08dc4131)

Cherry picked from eb39c5fb4f8f30a203e20abd14f13c30fe28b8d8

Change-Id: Ia37fc2ce540bd594b9d9e23beb08fd5df788f1e4
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/mesa/+/399927
Reviewed-by: Craig Stout <cstout@google.com>
1 file changed