Re: [RFC PATCH] drm/sched: Fix teardown leaks with waitqueue

2024-09-05 Thread Philipp Stanner
On Wed, 2024-09-04 at 19:47 +0200, Simona Vetter wrote: > On Tue, Sep 03, 2024 at 11:44:47AM +0200, Philipp Stanner wrote: > > The GPU scheduler currently does not ensure that its pending_list > > is > > empty before performing various other teardown tasks in > > drm_sched_fini(). > > > > If there

Re: [RFC PATCH] drm/sched: Fix teardown leaks with waitqueue

2024-09-04 Thread Simona Vetter
On Tue, Sep 03, 2024 at 11:44:47AM +0200, Philipp Stanner wrote: > The GPU scheduler currently does not ensure that its pending_list is > empty before performing various other teardown tasks in > drm_sched_fini(). > > If there are still jobs in the pending_list, this is problematic because > after

[RFC PATCH] drm/sched: Fix teardown leaks with waitqueue

2024-09-03 Thread Philipp Stanner
The GPU scheduler currently does not ensure that its pending_list is empty before performing various other teardown tasks in drm_sched_fini(). If there are still jobs in the pending_list, this is problematic because after scheduler teardown, no one will call backend_ops.free_job() anymore. This wo