Skip to content

Commit

Permalink
drm/i915: Do interrupible mutex lock first to avoid locking for unref…
Browse files Browse the repository at this point in the history
…erence

One of the primarily consumers of the i915 driver is X, a large signal
driven application. Frequently when writing into the buffers, there is a
pending signal which causes us not to take the interruptible lock but
then we need to take that same lock around the object unreference. By
rearranging the code to do the interruptible lock as the first check, we
can avoid the frequent additional locking around the unreference.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
  • Loading branch information
Chris Wilson committed Oct 19, 2010
1 parent 139d363 commit 1d7cfea
Showing 1 changed file with 93 additions and 113 deletions.
Loading

0 comments on commit 1d7cfea

Please sign in to comment.