Skip to content

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

Draft
eeea2222 wants to merge 1 commit into
CachyOS:7.0/cachyfrom
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/cachyfrom
eeea2222:codex/blk-mq-local-run-work

Conversation

@eeea2222

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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant