Skip to content

Navigation Menu

Sign in
Sign up

blk-mq: prefer current CPU for async hctx run work - #12

Draft
eeea2222 wants to merge 1 commit into
CachyOS:7.0/cachy from
eeea2222:codex/blk-mq-local-run-work
Draft

blk-mq: prefer current CPU for async hctx run work #12
eeea2222 wants to merge 1 commit into
CachyOS:7.0/cachy from
eeea2222:codex/blk-mq-local-run-work

Conversation

@eeea2222

@eeea2222 eeea2222 commented Jun 22, 2026

Copy link
Copy Markdown

Summary

Prefer the current CPU for blk-mq async hardware-queue run work when that CPU is already part of the hctx CPU mask.

Existing unbound and round-robin fallbacks remain in place when the current CPU is not suitable.

Why

The previous logic always rotated through the hctx CPU mask in batches. If the caller is already on a valid CPU, scheduling work elsewhere can create avoidable remote wakeups and cacheline movement.

Compatibility

No userspace ABI, module contract, exported symbol, Kconfig, or dependency changes. This only refines internal CPU selection for async hctx run work.

Validation

  • Passed targeted ARCH=um object build for block/blk-mq.o.
  • x86 object validation was attempted locally but blocked before compiling this object because the host environment lacked gelf.h, required by objtool.

CherrieTheShifter reacted with thumbs up emoji

Copy link
Copy Markdown

Yes This

CherrieTheShifter reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot will automatically review once the pull request is marked ready for review

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /