Re: [Intel-gfx] [PATCH 2/2] drm/i915: Protect request peeking with RCU

2019-11-04 Thread Mika Kuoppala
Chris Wilson writes: > Since the execlists_active() is no longer protected by the > engine->active.lock, we need to protect the request pointer with RCU to > prevent it being freed as we evaluate whether or not we need to preempt. > > Fixes: df403069029d ("drm/i915/execlists: Lift process_csb()

[Intel-gfx] [PATCH 2/2] drm/i915: Protect request peeking with RCU

2019-11-04 Thread Chris Wilson
Since the execlists_active() is no longer protected by the engine->active.lock, we need to protect the request pointer with RCU to prevent it being freed as we evaluate whether or not we need to preempt. Fixes: df403069029d ("drm/i915/execlists: Lift process_csb() out of the irq-off spinlock")