Commit baf4afc
Philipp Stanner
drm/sched: Improve teardown documentation
If jobs are still enqueued in struct drm_gpu_scheduler.pending_list
when drm_sched_fini() gets called, those jobs will be leaked since that
function stops both job-submission and (automatic) job-cleanup. It is,
thus, up to the driver to take care of preventing leaks.
The related function drm_sched_wqueue_stop() also prevents automatic job
cleanup.
Those pitfals are not reflected in the documentation, currently.
Explicitly inform about the leak problem in the docstring of
drm_sched_fini().
Additionally, detail the purpose of drm_sched_wqueue_{start,stop} and
hint at the consequences for automatic cleanup.
Signed-off-by: Philipp Stanner <[email protected]>
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]1 parent 21c23e4 commit baf4afc
1 file changed
+21
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1350 | 1350 | | |
1351 | 1351 | | |
1352 | 1352 | | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
1353 | 1366 | | |
1354 | 1367 | | |
1355 | 1368 | | |
| |||
1445 | 1458 | | |
1446 | 1459 | | |
1447 | 1460 | | |
1448 | | - | |
1449 | 1461 | | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
1450 | 1465 | | |
1451 | 1466 | | |
1452 | 1467 | | |
| |||
1458 | 1473 | | |
1459 | 1474 | | |
1460 | 1475 | | |
1461 | | - | |
1462 | 1476 | | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
1463 | 1482 | | |
1464 | 1483 | | |
1465 | 1484 | | |
| |||
0 commit comments