Re: [PATCH RFC 11/18] drm/scheduler: Clean up jobs when the scheduler is torn down

From: Christian König
Date: Wed Mar 08 2023 - 13:14:13 EST


Am 08.03.23 um 18:39 schrieb alyssa@xxxxxxxxxxxxx:
You can't ask me for a list
of pending jobs (the scheduler knows this, it doesn't make any sense to
duplicate that outside)
Silly question: could you add a new exported function to drm_sched to get the list of pending jobs, to be used by the Rust abstraction internally? IDK if that makes any sense.

I was thinking about something similar as well. The problem is that you could only use this function from the scheduler thread itself, e.g. from one of its callback functions.

Christian.