drm/i915: Fix preallocated barrier list append
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 29 Jan 2020 23:23:45 +0000 (15:23 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 30 Jan 2020 07:37:02 +0000 (07:37 +0000)
commitd4c3c0b8221a72107eaf35c80c40716b81ca463e
treeb0736f85d2517207437ca7a5b66774308f97c989
parentf70431023eb6e5827dbf25050a8afd75bef1f2b0
drm/i915: Fix preallocated barrier list append

Only the first and the last nodes were being added to
ref->preallocated_barriers.

Renaming variables to make it more easy to read.

Fixes: 841350223816 ("drm/i915/gt: Drop mutex serialisation between context pin/unpin")
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200129232345.84512-1-jose.souza@intel.com
drivers/gpu/drm/i915/i915_active.c