accel/habanalabs: use memhash_node_export_put() in hl_release_dmabuf()
authorTomer Tayar <ttayar@habana.ai>
Wed, 18 Jan 2023 14:00:55 +0000 (16:00 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Wed, 15 Mar 2023 11:29:12 +0000 (13:29 +0200)
commit6071e21325426f7930a4fd98b37f39cd332f50ed
treee0455be3de3ef8ad0a6edc7a024c4e53dc4d8ae7
parent271b2d5f30d7e84c93d6869f3d6f16a4e49718b0
accel/habanalabs: use memhash_node_export_put() in hl_release_dmabuf()

The same mutex lock/unlock and counter decrementing in
hl_release_dmabuf() is already done in the memhash_node_export_put()
helper function.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
drivers/accel/habanalabs/common/memory.c