Re: [PATCH v3] sched_ext: Serialize user DSQ destruction against deferred reenqueues

From: Tejun Heo

Date: Fri Oct 09 2026 - 18:02:24 EST


Hello, Hui.

On Thu, Oct 08, 2026 at 11:47:53AM +0900, Hui Su wrote:
> After the initial grace period, take every rq lock with its deferred lock.
> This unlinks requests not yet detached and closes the detach-to-cursor
> window for active consumers. reenq_user() leaves its iteration cursor on

I'd rather cancel the pending requests before the grace period, so that
exit_dsq()'s assumption holds and its WARN keeps catching lost schedules:

https://lore.kernel.org/all/20261009220001.196762128-1-tj@xxxxxxxxxx/

Can you test that one instead?

Thanks.

--
tejun