Re: [PATCH] ublk: consolidate nr_io_ready and nr_queues_ready

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

 



On Mon, Sep 08, 2025 at 12:45:41PM -0600, Caleb Sander Mateos wrote:
> ublk_mark_io_ready() tracks whether all the ublk_device's I/Os have been
> fetched by incrementing ublk_queue's nr_io_ready count and incrementing
> ublk_device's nr_queues_ready count if the whole queue is ready.
> Simplify the logic by just tracking the total number of fetched I/Os on
> each ublk_device. When this count reaches nr_hw_queues * queue_depth,
> the ublk_device is ready to receive I/O.
> 
> Signed-off-by: Caleb Sander Mateos <csander@xxxxxxxxxxxxxxx>

Looks fine:

Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>


Thanks,
Ming





[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