util/u_queue: fix race in total_jobs_size access
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 26 Mar 2020 15:50:31 +0000 (15:50 +0000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 30 Mar 2020 20:17:43 +0000 (20:17 +0000)
commit1ef9658906655edb6b2beaf2951a9dc81d93b827
tree30da83734e47ddb43d2add74c1dfaa3abe2c1ca4
parentd101ca3f5ad85731cedbe7ab399d4323cca1aac6
util/u_queue: fix race in total_jobs_size access

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
CC: <mesa-stable@lists.freedesktop.org>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4335>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4335>
src/util/u_queue.c