Skip to content

fix(process): correct CPU kick logic for process migration#1879

Open
fslongjin wants to merge 1 commit intoDragonOS-Community:masterfrom
fslongjin:fix-process-kick-rq-lock
Open

fix(process): correct CPU kick logic for process migration#1879
fslongjin wants to merge 1 commit intoDragonOS-Community:masterfrom
fslongjin:fix-process-kick-rq-lock

Conversation

@fslongjin
Copy link
Copy Markdown
Member

  • Refactor kick_cpu condition to properly lock target rq before reading rq.current
  • Address DragonOS's different rq.current convention compared to Linux's lockless approach
  • Ensure thread safety when checking if target CPU is running the process to be migrated

- Refactor kick_cpu condition to properly lock target rq before reading
rq.current
- Address DragonOS's different rq.current convention compared to Linux's
lockless approach
- Ensure thread safety when checking if target CPU is running the process to be
migrated

Signed-off-by: longjin <longjin@DragonOS.org>
@github-actions github-actions Bot added the Bug fix A bug is fixed in this pull request label Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug fix A bug is fixed in this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant