From 836a79da817d87023a3702bb330a8339946697be Mon Sep 17 00:00:00 2001 From: hky1999 <976929993@qq.com> Date: Fri, 11 Oct 2024 22:50:54 +0800 Subject: [PATCH] [refactor] delete redundant assertion in block_resched() --- modules/axtask/src/run_queue.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/axtask/src/run_queue.rs b/modules/axtask/src/run_queue.rs index 1f62357349..9eb53ed72e 100644 --- a/modules/axtask/src/run_queue.rs +++ b/modules/axtask/src/run_queue.rs @@ -308,11 +308,6 @@ impl<'a, G: BaseGuard> AxRunQueueRef<'a, G> { // Current task's state has been changed to `Blocked` and added to the wait queue. // Note that the state may have been set as `Ready` in `unblock_task()`, // see `unblock_task()` for details. - assert!( - curr.is_blocked() | curr.is_ready(), - "current task is not blocked or ready, state: {:?}", - curr.state() - ); debug!("task block: {}", curr.id_name()); self.inner.resched(false);