Re: [PATCH v2 3/9] block: WARN if bdev inflight counter is negative

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 29/04/2025 02:43, Yu Kuai wrote:
accounting, IO done is more than IO start, and this is a bug.

for related bio-based disk driver, or blk-mq
for rq-based disk, it's better not to hide the BUG.

AFICS, this check was not present for mq, so is it really required now? I suppose that the code is simpler to always have the check. I find it an odd check to begin with...

This check do present for mq, for example, diskstats_show() and
update_io_ticks().

ok, I just noticed this in part_inflight_show() -> blk_mq_in_flight_rw(), which didn't have such a check. I think that is because we expect the tagset iter to provide a sane count value.

Thanks,
John




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux