t/io_uring: fix max_blocks calculation in nvme passthrough mode
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Thu, 13 Apr 2023 10:47:14 +0000 (18:47 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 13 Apr 2023 12:40:32 +0000 (06:40 -0600)
commite2a4a77e483e2d40a680b57b13bb08042929df1c
treedfdbf815a71249147fa3215c8c525c6a5ca70863
parent07ed2b57741afa53afa7b2b9fa742c652f1ed8c1
t/io_uring: fix max_blocks calculation in nvme passthrough mode

nvme_id_ns's nsze has already been counted in logical blocks, so
there is no need to divide by bs.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230413104714.57703-1-xiaoguang.wang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c