]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: initialize the parity work only once
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 May 2012 12:57:42 +0000 (14:57 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 1 Jun 2012 08:00:47 +0000 (10:00 +0200)
commit5eb2fc5a0fa12d64ff00ceeb2f21874200d85a2a
tree24307a4cbc9ab6763d4383e3802df4143f89fac5
parent8d14353d6d927e5ac8adccdbf7babf04dd088085
drm/i915: initialize the parity work only once

This fixes an (albeit really hard to hit) race resulting in an oops:
- The parity work get scheduled.
- We re-init the irq state and call INIT_WORK again.
- The workqueue code tries to run the work item and stumbles over a
  work item that should be on it's runlist.

Also initiliaze the work item unconditionally like all the others,
it's simpler.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c