mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
dma-buf: add more reservation object locking wrappers
Complete the abstraction of the ww_mutex inside the reservation object. This allows us to add more handling and debugging to the reservation object in the future. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/320761/
This commit is contained in:
@@ -169,7 +169,7 @@ static int vmw_cotable_unscrub(struct vmw_resource *res)
|
||||
} *cmd;
|
||||
|
||||
WARN_ON_ONCE(bo->mem.mem_type != VMW_PL_MOB);
|
||||
lockdep_assert_held(&bo->resv->lock.base);
|
||||
reservation_object_assert_held(bo->resv);
|
||||
|
||||
cmd = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmd));
|
||||
if (!cmd)
|
||||
@@ -311,7 +311,7 @@ static int vmw_cotable_unbind(struct vmw_resource *res,
|
||||
return 0;
|
||||
|
||||
WARN_ON_ONCE(bo->mem.mem_type != VMW_PL_MOB);
|
||||
lockdep_assert_held(&bo->resv->lock.base);
|
||||
reservation_object_assert_held(bo->resv);
|
||||
|
||||
mutex_lock(&dev_priv->binding_mutex);
|
||||
if (!vcotbl->scrubbed)
|
||||
|
||||
Reference in New Issue
Block a user