drm/msm: Take lru lock once per submit_pin_objects()

Split out pin_count incrementing and lru updating into a separate loop
so we can take the lru lock only once for all objs.  Since we are still
holding the obj lock, it is safe to split this up.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/551025/
This commit is contained in:
Rob Clark 2023-08-02 15:21:51 -07:00
commit fc896cf3d6
3 changed files with 46 additions and 17 deletions