-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: allow RUNNING tasks to be re-scheduled in the future.
Because of a race condition between when the DONE interrupt is sent to the host and when the previous ipc task's state is updated to COMPLETED, new ipc's from the host could end up not being scheduled. This leads to ipc time outs on the host. In order to prevent this, this patch introduces a new task state called PENDING which is assigned to the task when it is picked as the next task to be run. The state is then updated to running when the task function is executed. This way when a ipc task comes in, a RUNNING task could get scheduled again and assigned the PENDING state to ensure that it doesnt get missed. Signed-off-by: Ranjani Sridharan <[email protected]>
- Loading branch information
Showing
3 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters