[PATCH 1/3] drm/prime: fixup the dma buf export cache locking

2012-07-23 Thread Daniel Vetter
Well, actually add some, because currently there's exactly none: - in handle_to_fd we only take the file_priv's prime lock, but the underlying gem object we're exporting isn't per-file. - in each driver's dma_buf->release callback we don't grab any locks at all. Also, we're not protected by an

[PATCH 1/3] drm/prime: fixup the dma buf export cache locking

2012-07-23 Thread Daniel Vetter
Well, actually add some, because currently there's exactly none: - in handle_to_fd we only take the file_priv's prime lock, but the underlying gem object we're exporting isn't per-file. - in each driver's dma_buf->release callback we don't grab any locks at all. Also, we're not protected by an