Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec4bf25a authored by Vinayak Menon's avatar Vinayak Menon
Browse files

android: binder: enable preemption for vfree



New changes to vfree makes it a sleepable function
which makes it an offense to call vfree from the
binder_deferred_func (via binder_deferred_release).
binder_deferred_func disables preemption for reducing
lock latencies, so to avoid the problem enable preemption
for the duration of vfree execution. vfree_atomic can't be
used as binder unmaps the buffer before doing free, and
vfree_atomic dereferences the to-be-freed address.

Change-Id: I093b37a6d049c7cbb599aeb05012b189b45b587b
Signed-off-by: default avatarVinayak Menon <vinmenon@codeaurora.org>
parent 1ccabf65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment