[PATCH 4/7] drm: per device prime dma buf hash

2012-02-22 Thread Ben Widawsky
Dave's original prime patches had a per file lookup (currently a list, but should probably be a hash as mentioned in the comment). This is handy for when an importer tries to import the same BO multiple times as it will prevent object duplication in that case. The problem is it does not account

[PATCH 4/7] drm: per device prime dma buf hash

2012-02-22 Thread Ben Widawsky
Dave's original prime patches had a per file lookup (currently a list, but should probably be a hash as mentioned in the comment). This is handy for when an importer tries to import the same BO multiple times as it will prevent object duplication in that case. The problem is it does not account