Skip to content

virtio: PCI ERS permanent failure teardown for virtio-blk#963

Open
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1111568=>linus-master
Open

virtio: PCI ERS permanent failure teardown for virtio-blk#963
blktests-ci[bot] wants to merge 2 commits into
linus-master_basefrom
series/1111568=>linus-master

Conversation

@blktests-ci

@blktests-ci blktests-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown

Pull request for series with
subject: virtio: PCI ERS permanent failure teardown for virtio-blk
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1111568

@blktests-ci

blktests-ci Bot commented Jun 15, 2026

Copy link
Copy Markdown
Author

Upstream branch: 062871f
series: https://patchwork.kernel.org/project/linux-block/list/?series=1111568
version: 1

@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from ce7af27 to 8f0260b Compare June 17, 2026 11:48
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 199644a to e6d9eb8 Compare June 17, 2026 12:02
@blktests-ci

blktests-ci Bot commented Jun 17, 2026

Copy link
Copy Markdown
Author

Upstream branch: 66affa3
series: https://patchwork.kernel.org/project/linux-block/list/?series=1111568
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from 8f0260b to f19ddd6 Compare June 17, 2026 12:12
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from e6d9eb8 to 7d8604f Compare June 24, 2026 01:11
@blktests-ci

blktests-ci Bot commented Jun 24, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from f19ddd6 to d87c3c6 Compare June 24, 2026 01:33
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 7d8604f to 4cc45a3 Compare June 26, 2026 08:14
@blktests-ci

blktests-ci Bot commented Jun 26, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from d87c3c6 to 6c3d71b Compare June 26, 2026 08:53
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 4cc45a3 to 90ffd56 Compare June 29, 2026 17:14
@blktests-ci

blktests-ci Bot commented Jun 29, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from 6c3d71b to 38e013b Compare June 29, 2026 17:56
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 90ffd56 to d52f35a Compare July 2, 2026 19:18
@blktests-ci

blktests-ci Bot commented Jul 2, 2026

Copy link
Copy Markdown
Author

Upstream branch: 87320be
series: https://patchwork.kernel.org/project/linux-block/list/?series=1111568
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from 38e013b to c4f32ff Compare July 2, 2026 19:54
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from d52f35a to a644c13 Compare July 6, 2026 08:28
Xixin Liu added 2 commits July 6, 2026 09:32
virtio-pci only registered reset_prepare/reset_done.  The PCI error
recovery core treats devices without error_detected as NO_AER_DRIVER and
does not deliver pci_channel_io_perm_failure to the driver after a failed
recovery.  Virtio devices therefore miss the normal ERS quiesce/teardown
sequence.

Register error_detected: quiesce on frozen (reset_prepare) before bus
reset; on perm_failure break virtqueues and return DISCONNECT.  Block-layer
cleanup for virtio-blk is handled in the follow-up patch.

Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
After ERS reports pci_channel_io_perm_failure, virtio-pci must ask the
virtio driver to tear down the block device — not only mark virtqueues
broken.  Call the virtio driver shutdown hook from virtio-pci on
perm_failure; virtio-blk implements shutdown with blk_mark_disk_dead().
Fail new requests early in virtio_queue_rq when the disk is dead or
virtqueues were removed during frozen reset_prepare.

Signed-off-by: Xixin Liu <liuxixin@kylinos.cn>
@blktests-ci

blktests-ci Bot commented Jul 6, 2026

Copy link
Copy Markdown
Author

Upstream branch: 8cdeaa5
series: https://patchwork.kernel.org/project/linux-block/list/?series=1111568
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1111568=>linus-master branch from c4f32ff to 0a64d53 Compare July 6, 2026 09:32
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.

0 participants