[Intel-gfx] [PATCH] drm: Convert prime dma-buf <-> handle to rhashtable

2016-09-23 Thread Sean Paul
On Thu, Sep 22, 2016 at 7:43 AM, Chris Wilson wrote: > Currently we use a linear walk to lookup a handle and return a dma-buf, > and vice versa. A long overdue TODO task is to convert that to a > hashtable. Since the initial implementation of dma-buf/prime, we now > have resizeable hashtables we

[PATCH] drm: Convert prime dma-buf <-> handle to rhashtable

2016-09-22 Thread Chris Wilson
Currently we use a linear walk to lookup a handle and return a dma-buf, and vice versa. A long overdue TODO task is to convert that to a hashtable. Since the initial implementation of dma-buf/prime, we now have resizeable hashtables we can use (and now a future task is to RCU enable the lookup!).