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

Skip to content
Commit 9a64d016 authored by Isaac J. Manjarres's avatar Isaac J. Manjarres
Browse files

soc: qcom: mem-buf: Fix message processing race condition



mem-buf currently uses a workqueue with multiple worker threads
associated with it for handling allocation requests and reclaiming
memory. This can cause overlaps in time where an allocation request
can overlap with memory reclaim.

This is not ideal, as the memory allocation request may fail if the
memory that is supposed to have been reclaimed has not been reclaimed
yet. Thus, use an ordered workqueue to make sure that there is no
overlap between processing allocation and memory reclaim messages.

Change-Id: I4a76c74b1785d2448c6c2f97a43efaa5bf6ad99a
Signed-off-by: default avatarIsaac J. Manjarres <isaacm@codeaurora.org>
parent b54ec6fd
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