summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2015-08-20 14:54:17 +1000
committerBen Skeggs <bskeggs@redhat.com>2015-08-28 12:37:38 +1000
commit73ce0e98b5cb43239c81b8efe84bcfcf00f2ed6f (patch)
tree3f504b17ae08ccc5a18bfda5c24ffa6580daeefe /lib
parent9f8192802540d6b357595ea1d5ad97ef5523399c (diff)
downloadnouveau-73ce0e98b5cb43239c81b8efe84bcfcf00f2ed6f.tar.gz
mmu: protect each vm with its own mutex
An upcoming commit requires being able to modify the PRAMIN BAR page tables while already holding the MMU subdev mutex. To solve this issue, each VM has been given its own mutex. As a nice side-effect, this also allows separate VMs to be updated concurrently. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/include/nvif/os.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h
index 30f03cc9e..c81fad685 100644
--- a/lib/include/nvif/os.h
+++ b/lib/include/nvif/os.h
@@ -545,7 +545,7 @@ struct lock_class_key {
};
#define __mutex_init(a,b,c) do { \
- struct lock_class_key *_key = (c); (void)_key; \
+ struct lock_class_key *__key = (c); (void)__key; \
pthread_mutex_init(&(a)->mutex, NULL); \
} while(0)