drm/i915: Avoid taking the mutex for dropping the refcnt upon creation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Oct 2010 12:20:40 +0000 (13:20 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Oct 2010 08:19:28 +0000 (09:19 +0100)
commit202f2fef7a1aa6b2e4fa6e1de3ef582342fd41f0
tree4094308fc3d12f51920e1889ff0160d78095f0d7
parentf0c43d9b7ec1bb9827b3dd5ac5915d22ceed8f6a
drm/i915: Avoid taking the mutex for dropping the refcnt upon creation

After allocation a handle for the fresh object, we know that we can
safely drop the refcnt without triggering a free so we do not need the
mutex. Strangely, this mutex acquisition is the one that appears on
driver profiles.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c