Skip to content

Commit

Permalink
drm: fix regression in drm locking since BKL removal.
Browse files Browse the repository at this point in the history
This locking path needs proper auditing but probably too late for changes at this point for 2.6.36, so lets go with the quick fix, which is to drop the lock around schedule.

Reported-by: Andreas Schwab <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
  • Loading branch information
arndb authored and airlied committed Aug 26, 2010
1 parent 12acd90 commit 08f2e66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/drm_lock.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ int drm_lock(struct drm_device *dev, void *data, struct drm_file *file_priv)
}

/* Contention */
mutex_unlock(&drm_global_mutex);
schedule();
mutex_lock(&drm_global_mutex);
if (signal_pending(current)) {
ret = -EINTR;
break;
Expand Down

0 comments on commit 08f2e66

Please sign in to comment.