Skip to content
Snippets Groups Projects
Commit dc96f488 authored by Laura Abbott's avatar Laura Abbott
Browse files

cma: Make locking finer grained


CMA locking is currently very coarse. The cma_mutex protects both
the bitmap and avoids concurrency with alloc_contig_range. There
are several situations which may result in a deadlock on the CMA
mutex currently, mostly involving AB/BA situations with alloc and
free. Fix this issue by protecting the bitmap with a mutex per CMA
region and use the existing mutex for protecting against concurrency
with alloc_contig_range.

Change-Id: I642ac04995f47f863c94a9dc1c787be9b1ac9ba3
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 970afde7
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment