Skip to content
Commit 7169f0df authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: don't free phys_pg_pack inside lock



Freeing phys_pg_pack includes calling to scrubbing functions of the
device's memory, taking locks and possibly even calling reset.

This is not something that should be done while holding a device-wide
spinlock.

Therefore, save the relevant objects on a local linked-list and after
releasing the spinlock, traverse that list and free the phys_pg_pack
objects.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 1dc6cc4b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment