drm/etnaviv: move ww_acquire_ctx out of submit object
The acquire_ctx is special in that it needs to be released from the same thread as has been used to initialize it. This collides with the intention to extend the submit lifetime beyond the gem_submit function with potentially other threads doing the final cleanup. Move the ww_acquire_ctx to the function local stack as suggested in the documentation. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
@@ -102,7 +102,6 @@ struct etnaviv_gem_submit_bo {
|
||||
*/
|
||||
struct etnaviv_gem_submit {
|
||||
struct etnaviv_gpu *gpu;
|
||||
struct ww_acquire_ctx ticket;
|
||||
struct dma_fence *out_fence, *in_fence;
|
||||
u32 flags;
|
||||
unsigned int nr_bos;
|
||||
|
Reference in New Issue
Block a user