* [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
@ 2025-11-12 18:24 Bart Van Assche
2025-11-13 2:01 ` Martin K. Petersen
2025-11-13 14:22 ` Jens Axboe
0 siblings, 2 replies; 4+ messages in thread
From: Bart Van Assche @ 2025-11-12 18:24 UTC (permalink / raw)
To: Martin K . Petersen
Cc: linux-scsi, Bart Van Assche, Chaitanya Kulkarni, Damien Le Moal,
Christoph Hellwig, Jens Axboe
Document that all callers hold this lock because the code in
disk_zone_wplug_schedule_bio_work() depends on this.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
block/blk-zoned.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/block/blk-zoned.c b/block/blk-zoned.c
index 57ab2b365c2d..5487d5eb2650 100644
--- a/block/blk-zoned.c
+++ b/block/blk-zoned.c
@@ -1188,6 +1188,8 @@ void blk_zone_mgmt_bio_endio(struct bio *bio)
static void disk_zone_wplug_schedule_bio_work(struct gendisk *disk,
struct blk_zone_wplug *zwplug)
{
+ lockdep_assert_held(&zwplug->lock);
+
/*
* Take a reference on the zone write plug and schedule the submission
* of the next plugged BIO. blk_zone_wplug_bio_work() will release the
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
2025-11-12 18:24 [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking Bart Van Assche
@ 2025-11-13 2:01 ` Martin K. Petersen
2025-11-13 14:22 ` Jens Axboe
1 sibling, 0 replies; 4+ messages in thread
From: Martin K. Petersen @ 2025-11-13 2:01 UTC (permalink / raw)
To: Bart Van Assche
Cc: Martin K . Petersen, linux-scsi, Chaitanya Kulkarni,
Damien Le Moal, Christoph Hellwig, Jens Axboe
Bart,
> Document that all callers hold this lock because the code in
> disk_zone_wplug_schedule_bio_work() depends on this.
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
--
Martin K. Petersen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
2025-11-12 18:24 [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking Bart Van Assche
2025-11-13 2:01 ` Martin K. Petersen
@ 2025-11-13 14:22 ` Jens Axboe
2025-11-13 17:30 ` Bart Van Assche
1 sibling, 1 reply; 4+ messages in thread
From: Jens Axboe @ 2025-11-13 14:22 UTC (permalink / raw)
To: Bart Van Assche, Martin K . Petersen
Cc: linux-scsi, Chaitanya Kulkarni, Damien Le Moal, Christoph Hellwig
On 11/12/25 11:24 AM, Bart Van Assche wrote:
> Document that all callers hold this lock because the code in
> disk_zone_wplug_schedule_bio_work() depends on this.
This is already included in your previous series?
--
Jens Axboe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking
2025-11-13 14:22 ` Jens Axboe
@ 2025-11-13 17:30 ` Bart Van Assche
0 siblings, 0 replies; 4+ messages in thread
From: Bart Van Assche @ 2025-11-13 17:30 UTC (permalink / raw)
To: Jens Axboe, Martin K . Petersen
Cc: linux-scsi, Chaitanya Kulkarni, Damien Le Moal, Christoph Hellwig
On 11/13/25 6:22 AM, Jens Axboe wrote:
> On 11/12/25 11:24 AM, Bart Van Assche wrote:
>> Document that all callers hold this lock because the code in
>> disk_zone_wplug_schedule_bio_work() depends on this.
>
> This is already included in your previous series?
Hi Jens,
You are right, this patch is already in the series "[PATCH v2 0/3]
Refactor blk_zone_wplug_handle_write()" and is already in your for-next
branch. Thanks for having reported this. Something went wrong at my side
(wrong branch?). I will check which SCSI patch I actually wanted to
send out and resend it.
Bart.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-11-13 17:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 18:24 [PATCH] blk-zoned: Document disk_zone_wplug_schedule_bio_work() locking Bart Van Assche
2025-11-13 2:01 ` Martin K. Petersen
2025-11-13 14:22 ` Jens Axboe
2025-11-13 17:30 ` Bart Van Assche
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox