Skip to content

Commit

Permalink
drm: export drm_global_mutex for drivers to use
Browse files Browse the repository at this point in the history
Nouveau needs to be able to drop the mutex before sleeping to prevent a
deadlock from occuring.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Ben Skeggs committed Aug 26, 2010
1 parent ee508b8 commit e3461a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/drm_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@

/* from BKL pushdown: note that nothing else serializes idr_find() */
DEFINE_MUTEX(drm_global_mutex);
EXPORT_SYMBOL(drm_global_mutex);

static int drm_open_helper(struct inode *inode, struct file *filp,
struct drm_device * dev);
Expand Down

0 comments on commit e3461a2

Please sign in to comment.