Re: [PATCH v5] block: propagate in_flight to whole disk on partition I/O

From: Jens Axboe

Date: Fri May 22 2026 - 10:41:11 EST


On 5/22/26 8:24 AM, Keith Busch wrote:
> On Fri, May 22, 2026 at 10:16:38PM +0800, Tang Yizhou wrote:
>> @@ -1073,7 +1073,7 @@ void bdev_end_io_acct(struct block_device *bdev, enum req_op op,
>> part_stat_inc(bdev, ios[sgrp]);
>> part_stat_add(bdev, sectors[sgrp], sectors);
>> part_stat_add(bdev, nsecs[sgrp], jiffies_to_nsecs(duration));
>> - part_stat_local_dec(bdev, in_flight[op_is_write(op)]);
>> + bdev_inc_in_flight(bdev, op);
>
> This one should be bdev_dec_in_flight().

Yes, and let's chill the repostings. Send 1 per day, we've up to v5 in a
very short amount of time. Take your time and get it right, and give
people a chance to comment and review before randomly throwing version
N+1 over the wall.

--
Jens Axboe