OSDN Git Service

drm/i915/guc: Don't take struct_mutex for object unreference
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Feb 2017 13:34:20 +0000 (13:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 14 Feb 2017 22:30:22 +0000 (22:30 +0000)
commit65300b1f6e04a905200ac5943cb9bfdadc3651a2
treebe95dc5b041e61f102d4ecf28aeb7b0b41a99ab2
parentb8f2169db98eba2c5009cc67a448dc48a0fd4c48
drm/i915/guc: Don't take struct_mutex for object unreference

We no longer need to take the struct_mutex for freeing objects, and on
the finalisation paths here the mutex is not been used for serialisation
of the pointer access, so remove the BKL wart.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170214133420.7977-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_guc_loader.c
drivers/gpu/drm/i915/intel_huc.c