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:
Himateja Reddy <hmreddy@codeaurora.org>
Loading
Please register or sign in to comment