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

Skip to content
Commit 74bd150e authored by Jordan Crouse's avatar Jordan Crouse Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Add a file count to struct kgsl_process_private



Some process specific resources need to be released when all of the
open files for a process are closed including memory objects,
syncsources and the sysfs/debugfs entries. Currently these
resources are released when the first file is closed which causes
obvious problems for processes with multiple open file descriptors.
Use a file descriptor count to keep track of how many files are
open for the process and release the resources when the last one
goes away.

Note that struct kgsl_process_private does double duty - it also
contains the memory space information for the process (including
the pagetable) and that might have a longer lifespan beyond
the life of the file descriptors. In an ideal world we would seperate
out all of the other stuff into a different container but that
would involve a LOT of struct renaming and other sundry code
editing. For now this should give us the stability we crave.

CRs-Fixed: 740433
Change-Id: Ic0dedbadb09ecb4ff70777377544ddef256576dd
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent fa13cccf
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