diff --git a/embassy-executor/src/raw/mod.rs b/embassy-executor/src/raw/mod.rs index 4b83ff43fd..a074d21580 100644 --- a/embassy-executor/src/raw/mod.rs +++ b/embassy-executor/src/raw/mod.rs @@ -621,9 +621,6 @@ pub fn wake_task(task: TaskRef) { let header = task.header(); if header.state.run_enqueue() { // We have just marked the task as scheduled, so enqueue it. - // FIXME: there is currently a data race between re-spawning a task and waking it using an - // old waker. If the task is being spawned on a different executor, then reading and writing - // the executor field may happen concurrently. unsafe { let executor = header.executor.get().unwrap_unchecked(); executor.enqueue(task); @@ -638,9 +635,6 @@ pub fn wake_task_no_pend(task: TaskRef) { let header = task.header(); if header.state.run_enqueue() { // We have just marked the task as scheduled, so enqueue it. - // FIXME: there is currently a data race between re-spawning a task and waking it using an - // old waker. If the task is being spawned on a different executor, then reading and writing - // the executor field may happen concurrently. unsafe { let executor = header.executor.get().unwrap_unchecked(); executor.run_queue.enqueue(task);