Skip to content

block: revert avoid acquiring cpu hotplug lock in group_cpus_evenly#599

Open
blktests-ci[bot] wants to merge 3 commits intolinus-master_basefrom
series/1058417=>linus-master
Open

block: revert avoid acquiring cpu hotplug lock in group_cpus_evenly#599
blktests-ci[bot] wants to merge 3 commits intolinus-master_basefrom
series/1058417=>linus-master

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Feb 26, 2026

Pull request for series with
subject: block: revert avoid acquiring cpu hotplug lock in group_cpus_evenly
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1058417

@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 26, 2026

Upstream branch: 7dff99b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 27, 2026

Upstream branch: a75cb86
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 572f4e9 to 7d4e359 Compare February 27, 2026 16:37
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 14f6b99 to 856dc37 Compare February 27, 2026 22:07
@blktests-ci
Copy link
Author

blktests-ci bot commented Feb 27, 2026

Upstream branch: 4d349ee
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 7d4e359 to 83ef6df Compare February 27, 2026 22:16
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 856dc37 to 40967f0 Compare March 2, 2026 09:22
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 2, 2026

Upstream branch: 11439c4
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 83ef6df to ae31a92 Compare March 2, 2026 09:31
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 40967f0 to d4e9bad Compare March 2, 2026 23:54
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 3, 2026

Upstream branch: af4e9ef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from ae31a92 to 4fc2a4a Compare March 3, 2026 00:03
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch 2 times, most recently from ecd10e2 to d0e1bed Compare March 4, 2026 07:45
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 4, 2026

Upstream branch: af4e9ef
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 4fc2a4a to 6eecec1 Compare March 4, 2026 08:01
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from d0e1bed to 6b51c57 Compare March 4, 2026 09:34
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 4, 2026

Upstream branch: 0031c06
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 6eecec1 to a1181d5 Compare March 4, 2026 09:44
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 6b51c57 to 78036b2 Compare March 4, 2026 19:57
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 4, 2026

Upstream branch: ecc64d2
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from a1181d5 to d001c7d Compare March 4, 2026 20:07
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 78036b2 to bbb3394 Compare March 5, 2026 12:20
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 5, 2026

Upstream branch: c107785
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from d001c7d to 1caa45d Compare March 5, 2026 12:29
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from bbb3394 to 901a429 Compare March 5, 2026 21:37
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 5, 2026

Upstream branch: 5ee8dbf
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 1caa45d to 67b3958 Compare March 5, 2026 21:46
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 901a429 to 1f19ba6 Compare March 10, 2026 06:29
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 10, 2026

Upstream branch: 1f318b9
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 67b3958 to 2e5e9c9 Compare March 10, 2026 06:38
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 1f19ba6 to e79276a Compare March 11, 2026 08:02
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 11, 2026

Upstream branch: None
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 2e5e9c9 to 0343ac6 Compare March 11, 2026 08:12
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from e79276a to 0dd9afc Compare March 12, 2026 01:40
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 12, 2026

Upstream branch: 80234b5
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 0343ac6 to 0dd38a3 Compare March 12, 2026 02:08
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 0dd9afc to 2e598ed Compare March 13, 2026 07:29
igaw added 3 commits March 13, 2026 16:44
When the ctrl is not in LIVE state, a hardware queue can be in the
INACTIVE state due to CPU hotplug offlining operations. In this case,
the driver will freeze and quiesce the request queue and doesn't expect
new request entering via queue_rq. Though a request will fail eventually,
though shortcut it and fail it earlier.

Check if a request is targeted for an inactive hardware queue and use
nvme_failover_req and hand it back to the block layer.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The CPU hotplug offline handler in the block layer checks for any
in-flight requests on a CPU going offline. It prevents the CPU hotplug
state engine from progressing as long as there are pending requests.

This is done by checking for any allocated requests on the hardware
context that is going offline. The driver is responsible for completing
all in-flight requests.

However, the driver might be performing error recovery simultaneously.
Therefore, the request queue might be in a frozen or quiesced state. In
this case, requests may not make progress (see
blk_mq_sched_dispatch_requests for an example).

Introduce an explicit handshake protocol between the driver and the
block layer. This allows the driver to signal when it is safe to ignore
any remaining pending requests.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
…pus_evenly"

This reverts commit 0263f92.

The reason the lock was removed was that the nvme-pci driver reset
handler attempted to acquire the CPU read lock during CPU hotplug
offlining (holds the CPU write lock). Consequently, the block layer
offline notifier callback could not progress because in-flight requests
were detected.

Since then, in-flight detection has been improved, and the nvme-pci
driver now explicitly updates the hctx state when it is safe to ignore
detected in-flight requests. As a result, it's possible to reintroduce
the CPU read lock in group_cpus_evenly.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@blktests-ci
Copy link
Author

blktests-ci bot commented Mar 13, 2026

Upstream branch: 0257f64
series: https://patchwork.kernel.org/project/linux-block/list/?series=1058417
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1058417=>linus-master branch from 0dd38a3 to bd19b72 Compare March 13, 2026 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant