git: adcf15585744 - stable/15 - sched_ule: tdq_move(): INVARIANTS: Remove a superfluous assertion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 19 Nov 2026 15:32:22 UTC
The branch stable/15 has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=adcf15585744215123ffeef5f48fcfabff239d4e
commit adcf15585744215123ffeef5f48fcfabff239d4e
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-12 22:11:59 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-19 15:31:56 +0000
sched_ule: tdq_move(): INVARIANTS: Remove a superfluous assertion
That the lock of the stolen thread is the same as the source runqueue is
already checked by sched_rem().
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 2210a2f8d4705eee0bf3d89a8e30f0babb40fed1)
---
sys/kern/sched_ule.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 714d4c4a96fd..cd30a9da6dd9 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1096,7 +1096,6 @@ tdq_move(struct tdq *from, struct tdq *to)
*/
thread_lock_block_wait(td);
sched_rem(td);
- THREAD_LOCKPTR_ASSERT(td, TDQ_LOCKPTR(from));
td->td_lock = TDQ_LOCKPTR(to);
td_get_sched(td)->ts_cpu = cpu;
return (tdq_add(to, td, SRQ_YIELDING));