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

From: Yizhou Tang

Date: Sun May 24 2026 - 22:09:44 EST


On Fri, May 22, 2026 at 10:53 PM Keith Busch <kbusch@xxxxxxxxxx> 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().

Thanks for pointing that out.

Best regards,
Yi

>