diff options
author | Maarten Lankhorst <maarten.lankhorst@ubuntu.com> | 2015-02-26 11:54:03 +0100 |
---|---|---|
committer | Maarten Lankhorst <dev@mblankhorst.nl> | 2015-03-13 20:26:33 +0100 |
commit | 5ea6f1c32628887c9df0c53bc8c199eb12633fec (patch) | |
tree | f466d5ed08d547ebb20da6ccc6fa1cbb2efc3785 /configure.ac | |
parent | 7caa442e761ab5e48698c937aea9ce18f4522ecb (diff) |
nouveau: make nouveau importing global buffers completely thread-safe, with tests
While I've closed off most races in a previous patch, a small race still existed
where importing then unreffing cound cause an invalid bo. Add a test for this case.
Racing sequence fixed:
- thread 1 releases bo, refcount drops to zero, blocks on acquiring nvdev->lock.
- thread 2 increases refcount to 1.
- thread 2 decreases refcount to zero, blocks on acquiring nvdev->lock.
At this point the 2 threads will clean up the same bo.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@ubuntu.com>
Reviewed-By: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 437f4da4..106d9709 100644 --- a/configure.ac +++ b/configure.ac @@ -454,6 +454,7 @@ AC_CONFIG_FILES([ tests/vbltest/Makefile tests/exynos/Makefile tests/tegra/Makefile + tests/nouveau/Makefile man/Makefile libdrm.pc]) AC_OUTPUT |