diff options
author | Eric Anholt <eric@anholt.net> | 2013-01-08 11:39:53 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2013-01-08 11:44:46 -0800 |
commit | 653b8199f7cc44d5a10757862fd684dad2276361 (patch) | |
tree | b593cb915e28d2ba396828c9cd80efd2396db365 /include | |
parent | c0c36b941b6f0be6ac74f340040cbb29d6a0b06c (diff) |
drm: Convert the lock protecting object handles to a mutex.
In execbuf, we want to be able to do many lookups of handles without
having to take and drop a lock every time. Convert it to a mutex so
that we'll be able to hold the lock across all our lookups.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/drm/drmP.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drmP.h b/include/drm/drmP.h index fad21c927a3..fec34eab617 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -438,7 +438,7 @@ struct drm_file { /** Mapping of mm object handles to object pointers. */ struct idr object_idr; /** Lock for synchronization of access to object_idr. */ - spinlock_t table_lock; + struct mutex table_lock; struct file *filp; void *driver_priv; |