util/fossilize_db: Pull seek into lock.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 19 Jun 2021 16:40:49 +0000 (18:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 21 Jun 2021 10:05:12 +0000 (10:05 +0000)
commitbd41c51c8f4d67d18d8a4407358ea4b71f153d2a
treebf98a69ecb4a705e8420ecbfe3874410c95c5af1
parenta99474fae52db73a23861c2ba961ee5424222da5
util/fossilize_db: Pull seek into lock.

Otherwise the seek can overlap with other reads/writes.

Fixes: eca6bb9540d ("util/fossilize_db: add basic fossilize db util to read/write shader caches")
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11485>
src/util/fossilize_db.c