drm/i915: Reduce test_and_set_bit to set_bit in i915_request_submit()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jan 2021 13:56:12 +0000 (13:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 08:00:03 +0000 (08:00 +0000)
commit9736387a9f17a521a8aff3bc64814f335a6f09e8
tree906225e81deddf0ddf3f8bd4b5dcbffe0c8001f2
parent2d60d3e0a2a286b8d0ff7102fc7555dd33ad3faf
drm/i915: Reduce test_and_set_bit to set_bit in i915_request_submit()

Avoid the full blown memory barrier of test_and_set_bit() by noting the
completed request and removing it from the lists.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210114135612.13210-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c