msm: kgsl: Remove sysfs entries after releasing memory
Consider a scenario when device is in OOM situation. Assume a process is doing sysfs operation, grabs kernfs_mutex and wants to allocate memory. LMKD tries to kill processes but kgsl processes will be blocked waiting for kernfs_mutex in sysfs_remove_file. kgsl_process_private_close > kgsl_process_uninit_sysfs > sysfs_remove_file KGSL won't free up memory as it is done after sysfs removal leading to a livelock. Fix it by releasing memory before removing sysfs entries. Change-Id: I99640d7a653faffa671d5b035abb78e9473da12e Signed-off-by:Kamal Agrawal <kamaagra@codeaurora.org> Signed-off-by:
Pranav Vashi <neobuddy89@gmail.com>
Loading
Please register or sign in to comment