Skip to content

block: clear zone write plugging flag before failing rejected BIOs#938

Open
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1107182=>linus-master
Open

block: clear zone write plugging flag before failing rejected BIOs#938
blktests-ci[bot] wants to merge 1 commit into
linus-master_basefrom
series/1107182=>linus-master

Conversation

@blktests-ci

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

Copy link
Copy Markdown

Pull request for series with
subject: block: clear zone write plugging flag before failing rejected BIOs
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1107182

@blktests-ci

blktests-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci

blktests-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown
Author

Upstream branch: 979c294
series: https://patchwork.kernel.org/project/linux-block/list/?series=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 5362a9e to b7b08a3 Compare June 7, 2026 15:16
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from a7bb5c5 to 5e41a3b Compare June 10, 2026 13:31
@blktests-ci

blktests-ci Bot commented Jun 10, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from b7b08a3 to d5efef1 Compare June 10, 2026 13:53
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5e41a3b to c3a084b Compare June 10, 2026 20:26
@blktests-ci

blktests-ci Bot commented Jun 11, 2026

Copy link
Copy Markdown
Author

Upstream branch: 9716c08
series: https://patchwork.kernel.org/project/linux-block/list/?series=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from d5efef1 to 7e357c8 Compare June 11, 2026 09:26
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from c3a084b to 5f78e5d Compare June 12, 2026 22:27
@blktests-ci

blktests-ci Bot commented Jun 12, 2026

Copy link
Copy Markdown
Author

Upstream branch: 2a2974b
series: https://patchwork.kernel.org/project/linux-block/list/?series=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 7e357c8 to 60b6a95 Compare June 12, 2026 22:48
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch from 5f78e5d to e48f9db Compare June 13, 2026 01:19
@blktests-ci

blktests-ci Bot commented Jun 13, 2026

Copy link
Copy Markdown
Author

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

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 60b6a95 to a7b7aea Compare June 13, 2026 01:44
@blktests-ci blktests-ci Bot force-pushed the linus-master_base branch 2 times, most recently 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=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from a7b7aea to 0873b45 Compare June 17, 2026 13:44
@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=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 0873b45 to 20783b3 Compare June 24, 2026 01:42
@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=1107182
version: 1

@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 20783b3 to 5cbdf88 Compare June 26, 2026 09:01
@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=1107182
version: 1

Commit fe0418e ("block: Prevent potential deadlocks in zone write plug
error recovery") changed blk_zone_wplug_handle_write() to fail BIOs
directly when blk_zone_wplug_prepare_bio() rejects them, for example
because the write is not aligned to the cached write pointer or the plug
needs a write pointer update. However, the BIO is already marked with
BIO_ZONE_WRITE_PLUGGING at that point even though it is not issued.

Completing such a BIO with bio_io_error() makes bio_endio() call
blk_zone_write_plug_bio_endio(), which treats the completion as a failed
device write and may poison the cached zone write pointer state by setting
BLK_ZONE_WPLUG_NEED_WP_UPDATE.

Clear BIO_ZONE_WRITE_PLUGGING and drop the zone write plug reference before
failing the rejected BIO.

Fixes: fe0418e ("block: Prevent potential deadlocks in zone write plug error recovery")
Cc: stable@vger.kernel.org # 6.13+
Signed-off-by: Jackie Liu <liuyun01@kylinos.cn>
@blktests-ci blktests-ci Bot force-pushed the series/1107182=>linus-master branch from 5cbdf88 to 5917343 Compare June 29, 2026 18:03
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