Repository navigation
Conversation
Author
|
Upstream branch: de52810 |
Author
|
Upstream branch: de52810 |
…ctxs blk_mq_alloc_request_hctx uses the first online CPU in hctx->cpumask to select the software context for a request. Since commit a46c270 ("blk-mq: don't schedule block kworker on isolated CPUs"), hctx->cpumask excludes isolated CPUs. If a hardware context is mapped only to isolated CPUs, the mask is empty and blk_mq_alloc_request_hctx fails with -EXDEV. The NVMe fabrics transports use blk_mq_alloc_request_hctx to allocate the Connect command for each I/O queue. As a result, connecting to a controller can fail when using isolcpus=domain or an isolated cpuset partition. Passthrough requests bypass the software queues and go directly to hctx->dispatch. Their software context is only used to select the completion CPU and as a hint when freeing the tag. Use the software context of an online housekeeping CPU for passthrough requests. Fixes: a46c270 ("blk-mq: don't schedule block kworker on isolated CPUs") Tested-by: Maurizio Lombardi <mlombard@redhat.com> Signed-off-by: Daniel Wagner <dwagner@suse.de> Reviewed-by: Aaron Tomlin <atomlin@atomlin.com> Reviewed-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Hannes Reinecke <hare@kernel.org>
ghost
force-pushed
the
series/1200486=>for-next
branch
from
November 10, 2026 10:28
630ed70 to
29e980b
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull request for series with
subject: blk-mq: use a housekeeping CPU for passthrough requests on isolated hctxs
version: 2
url: https://patchwork.kernel.org/series/1200486/