video: driver: include error session load in admission control
Currently error session loads were ignored at admission control checks. So concurrent scenarios, there are chances that multiple sessions were in error state and yet to be closed by client. If those sessions were 8K sessions, then allowing new sessions will lead to OOM issues. Because error scenario, client might take more time to cleanup(to close driver fd). So it is better to include those sessions load as well in admission control checks to avoid OOM issues. Change-Id: I5d8f009b289f7f7cfb79a9e9197bfa4781f2fce3 Signed-off-by: Govindaraj Rajagopal <grajagop@codeaurora.org>
This commit is contained in:
@@ -5175,10 +5175,6 @@ static int msm_vidc_check_core_mbpf(struct msm_vidc_inst *inst)
|
||||
|
||||
core_lock(core, __func__);
|
||||
list_for_each_entry(instance, &core->instances, list) {
|
||||
/* ignore invalid/error session */
|
||||
if (is_session_error(instance))
|
||||
continue;
|
||||
|
||||
/* ignore thumbnail session */
|
||||
if (is_thumbnail_session(instance))
|
||||
continue;
|
||||
|
مرجع در شماره جدید
Block a user