drm/virtio: Replace IDRs with IDAs
These IDRs were only being used to allocate unique numbers, not to look up pointers, so they can use the more space-efficient IDA instead. Signed-off-by: Matthew Wilcox <willy@infradead.org> Link: http://patchwork.freedesktop.org/patch/msgid/20180926160031.15721-2-willy@infradead.org [ kraxel: resolve conflict ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:

committed by
Gerd Hoffmann

parent
6c1cd97bda
commit
1938d1ae32
@@ -191,8 +191,7 @@ struct virtio_gpu_device {
|
||||
struct kmem_cache *vbufs;
|
||||
bool vqs_ready;
|
||||
|
||||
struct idr resource_idr;
|
||||
spinlock_t resource_idr_lock;
|
||||
struct ida resource_ida;
|
||||
|
||||
wait_queue_head_t resp_wq;
|
||||
/* current display info */
|
||||
@@ -201,8 +200,7 @@ struct virtio_gpu_device {
|
||||
|
||||
struct virtio_gpu_fence_driver fence_drv;
|
||||
|
||||
struct idr ctx_id_idr;
|
||||
spinlock_t ctx_id_idr_lock;
|
||||
struct ida ctx_id_ida;
|
||||
|
||||
bool has_virgl_3d;
|
||||
|
||||
|
Reference in New Issue
Block a user