Re: [Intel-gfx] [PATCH 38/45] drm/i915: Drop the deferred active reference

2019-05-01 Thread Matthew Auld
On Thu, 25 Apr 2019 at 10:20, Chris Wilson wrote: > > An old optimisation to reduce the number of atomics per batch sadly > relies on struct_mutex for coordination. In order to remove struct_mutex > from serialising object/context closing, always taking and releasing an > active reference on first

[Intel-gfx] [PATCH 38/45] drm/i915: Drop the deferred active reference

2019-04-25 Thread Chris Wilson
An old optimisation to reduce the number of atomics per batch sadly relies on struct_mutex for coordination. In order to remove struct_mutex from serialising object/context closing, always taking and releasing an active reference on first use / last use greatly simplifies the locking. Signed-off-b