Loading
msm: kgsl: Detach all command batches from context while holding lock
The two paths to take down a context both detach command batches from
a context but they do it differently. Most importantly the
invalidate path takes the lock and drains the entire list while
detach takes and releases the lock as it walks the tree. The latter
is far more dangerous.
Make a helper function and call it from both paths - this should cut
down on issues when both functions are called concurrently.
Change-Id: Ic0dedbad184809118bdbf91c4f52b498ebb8efff
Signed-off-by:
Jordan Crouse <jcrouse@codeaurora.org>