summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorCaleb Sander Mateos <csander@purestorage.com>2025-09-08 21:45:41 +0300
committerJens Axboe <axboe@kernel.dk>2025-09-10 14:24:53 +0300
commit97e8ba31b8f1b743c918bf31586cdc272376226b (patch)
tree36832d700dab6f1f6e8e96ec6336ba9ce8420624 /tools/lib/python/kdoc/python_version.py
parente0ed2bca7bef9267da0928a8ed6d1de41f19ecf6 (diff)
downloadlinux-97e8ba31b8f1b743c918bf31586cdc272376226b.tar.xz
ublk: consolidate nr_io_ready and nr_queues_ready
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@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions