Thread (4 messages) 4 messages, 3 authors, 2025-08-26

Re: [PATCH] blk-zoned: Fix a lockdep complaint about recursive locking

From: Jens Axboe <axboe@kernel.dk>
Date: 2025-08-26 14:28:22

On Mon, 25 Aug 2025 11:27:19 -0700, Bart Van Assche wrote:
If preparing a write bio fails then blk_zone_wplug_bio_work() calls
bio_endio() with zwplug->lock held. If a device mapper driver is stacked
on top of the zoned block device then this results in nested locking of
zwplug->lock. The resulting lockdep complaint is a false positive
because this is nested locking and not recursive locking. Suppress this
false positive by calling blk_zone_wplug_bio_io_error() without holding
zwplug->lock. This is safe because no code in
blk_zone_wplug_bio_io_error() depends on zwplug->lock being held. This
patch suppresses the following lockdep complaint:

[...]
Applied, thanks!

[1/1] blk-zoned: Fix a lockdep complaint about recursive locking
      commit: 198f36f902ec7e99b645382505f74b87a4523ed9

Best regards,
-- 
Jens Axboe


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help