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

Skip to content
Commit 43cfe68b authored by Himateja Reddy's avatar Himateja Reddy
Browse files

msm: adsprpc: limit number of cached buffers



Current code allocates new buffer during invoke, if no free buffer
found in cached buffer list. During invoke return new buffer is
added to the cached buffer list. In Async RPC as many invocations
come in short duration, there is a chance of buffers piling up in
cached buffer list. Limit the number of buffers cached under
cached buffer list to MAX_CACHED_BUFS.

Change-Id: If62406f35397843986ae033ab2cb027ed2356fd1
Signed-off-by: default avatarHimateja Reddy <hmreddy@codeaurora.org>
parent 04fda4c2
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