]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Use a normal idr allocation for the obj->name
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jan 2016 10:11:01 +0000 (10:11 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 5 Jan 2016 08:00:00 +0000 (09:00 +0100)
commit04b3891dada0399ea0e318be68c43d0e7e3cb492
treee11ce6b4454247aa23ed46c9b49e48bb200e908a
parent9418d278397edf1f8cebff9fb0831528489ae0ca
drm: Use a normal idr allocation for the obj->name

Unlike the handle, the name table uses a sleeping mutex rather than a
spinlock. The allocation is in a normal context, and we can use the
simpler sleeping gfp_t, rather than have to take from the atomic
reserves.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1451902261-25380-3-git-send-email-chris@chris-wilson.co.uk
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_gem.c