Re: [PATCH] sched_ext: Fix potential deadlock in destroy_dsq()

Tejun Heo
2025-01-17T02:06:27Z

On Thu, Jan 16, 2025 at 12:51:01PM +0100, Andrea Righi wrote:
> When creating and destroying DSQs concurrently, a potential deadlock can
> occur due to a circular locking dependency between the locks involved in
> the operations:
>
> - create_dsq():
>
> rhashtable_bucket --> rq->lock --> dsq->lock

Hmm... this is probably the same thing that Breno tried to fix with
rhashtable update. Breno, what's the current state of that patch? I saw bug
reports and fix patch flying by but didn't track them closely.

Thanks.

--
tejun