git: 2210a2f8d470 - main - sched_ule: tdq_move(): INVARIANTS: Remove a superfluous assertion
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 Nov 2026 16:29:47 UTC
The branch main has been updated by olce:
URL: https://cgit.FreeBSD.org/src/commit/?id=2210a2f8d4705eee0bf3d89a8e30f0babb40fed1
commit 2210a2f8d4705eee0bf3d89a8e30f0babb40fed1
Author: Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-11-12 22:11:59 +0000
Commit: Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-11-14 16:29:32 +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
---
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 7354fe1926be..563baa5f06e2 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));