Skip to content

Conversation

@blktests-ci
Copy link

@blktests-ci blktests-ci bot commented Jan 14, 2026

Pull request for series with
subject: Fix an error path in disk_update_zone_resources()
version: 1
url: https://patchwork.kernel.org/project/linux-block/list/?series=1042470

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 14, 2026

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

@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 15, 2026

Upstream branch: 944aacb
series: https://patchwork.kernel.org/project/linux-block/list/?series=1042470
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1042470=>linus-master branch from 53c4c3b to 10b6193 Compare January 15, 2026 08:58
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from 8a473ad to fa94b37 Compare January 19, 2026 00:27
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 19, 2026

Upstream branch: 944aacb
series: https://patchwork.kernel.org/project/linux-block/list/?series=1042470
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1042470=>linus-master branch from 10b6193 to 3388a7d Compare January 19, 2026 00:30
@blktests-ci blktests-ci bot force-pushed the linus-master_base branch from fa94b37 to 41a5848 Compare January 21, 2026 04:18
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Any queue_limits_start_update() call must be followed either by a
queue_limits_commit_update() call or by a queue_limits_cancel_update()
call. Make sure that the error path near the start of
disk_update_zone_resources() follows this requirement. Remove the
"goto unfreeze" statement from that error path to make the code easier
to verify.

This was detected by annotating the queue_limits_*() calls with Clang
thread-safety attributes and by building the kernel with thread-safety
checking enabled. Without this patch and with thread-safety checking
enabled, the following error is reported:

block/blk-zoned.c:2020:1: error: mutex 'disk->queue->limits_lock' is not held on every path through here [-Werror,-Wthread-safety-analysis]
 2020 | }
      | ^
block/blk-zoned.c:1959:8: note: mutex acquired here
 1959 |         lim = queue_limits_start_update(q);
      |               ^

Cc: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Fixes: bba4322 ("block: freeze queue when updating zone resources")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
@blktests-ci
Copy link
Author

blktests-ci bot commented Jan 21, 2026

Upstream branch: 6c79021
series: https://patchwork.kernel.org/project/linux-block/list/?series=1042470
version: 1

@blktests-ci blktests-ci bot force-pushed the series/1042470=>linus-master branch from 3388a7d to eb017d3 Compare January 21, 2026 04:20
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.

2 participants