Re: [Intel-gfx] [PATCH 17/21] drm/i915/gt: Protect context lifetime with RCU

2020-07-31 Thread Tvrtko Ursulin
On 31/07/2020 16:24, Chris Wilson wrote: Quoting Tvrtko Ursulin (2020-07-31 16:15:43) On 30/07/2020 10:37, Chris Wilson wrote: Allow a brief period for continued access to a dead intel_context by deferring the release of the struct until after an RCU grace period. As we are using a

Re: [Intel-gfx] [PATCH 17/21] drm/i915/gt: Protect context lifetime with RCU

2020-07-31 Thread Chris Wilson
Quoting Tvrtko Ursulin (2020-07-31 16:15:43) > > On 30/07/2020 10:37, Chris Wilson wrote: > > Allow a brief period for continued access to a dead intel_context by > > deferring the release of the struct until after an RCU grace period. > > As we are using a dedicated slab cache for the contexts,

Re: [Intel-gfx] [PATCH 17/21] drm/i915/gt: Protect context lifetime with RCU

2020-07-31 Thread Tvrtko Ursulin
On 30/07/2020 10:37, Chris Wilson wrote: Allow a brief period for continued access to a dead intel_context by deferring the release of the struct until after an RCU grace period. As we are using a dedicated slab cache for the contexts, we can defer the release of the slab pages via RCU, with

[Intel-gfx] [PATCH 17/21] drm/i915/gt: Protect context lifetime with RCU

2020-07-30 Thread Chris Wilson
Allow a brief period for continued access to a dead intel_context by deferring the release of the struct until after an RCU grace period. As we are using a dedicated slab cache for the contexts, we can defer the release of the slab pages via RCU, with the caveat that individual structs may be