diff options
author | Thomas Hellström <[email protected]> | 2021-06-02 10:38:13 +0200 |
---|---|---|
committer | Thomas Hellström <[email protected]> | 2021-06-07 16:07:08 +0200 |
commit | a3be8cd70fec2aa8913b59c9026031205c29df28 (patch) | |
tree | 6b6bd93da399fd77d6ca54d4c045e73cf7a57c3a /scripts/gdb/linux/tasks.py | |
parent | 053c57696cb99c35859e9e9cc58c7d00e434d956 (diff) |
drm/ttm: Document and optimize ttm_bo_pipeline_gutting()
If the bo is idle when calling ttm_bo_pipeline_gutting(), we unnecessarily
create a ghost object and push it out to delayed destroy.
Fix this by adding a path for idle, and document the function.
Also avoid having the bo end up in a bad state vulnerable to user-space
triggered kernel BUGs if the call to ttm_tt_create() fails.
Finally reuse ttm_bo_pipeline_gutting() in ttm_bo_evict().
Cc: Christian König <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions