> -----Original Message----- > From: Ankit Kumar [mailto:ankit.kumar@xxxxxxxxxxx] > Sent: Thursday, May 26, 2022 10:48 AM > To: axboe@xxxxxxxxx > Cc: fio@xxxxxxxxxxxxxxx; krish.reddy@xxxxxxxxxxx; > joshi.k@xxxxxxxxxxx; anuj20.g@xxxxxxxxxxx; Ankit Kumar > <ankit.kumar@xxxxxxxxxxx> > Subject: [PATCH v2 7/8] engines/io_uring: Enable zone device support > for io_uring_cmd I/O engine > > Add zone device specific ioengine_ops for io_uring_cmd. > * get_zoned_model > * report_zones > * reset_wp > * get_max_open_zones > > Add the necessary NVMe ZNS specfication opcodes and strcutures. Add > helper functions to submit admin and I/O passthrough commands for > these > new NVMe ZNS specific commands. > > For write workload iodepth must be set to 1 as there is no IO scheduler > > Signed-off-by: Ankit Kumar <ankit.kumar@xxxxxxxxxxx> I ran the job file below on an emulated ZNS device under QEMU and found no problems. [global] filename=/dev/ng0n1 ioengine=io_uring_cmd cmd_type=nvme zonemode=zbd bs=256K verify=crc32c stonewall=1 [write-plain] rw=randwrite [randwrite-plain] rw=randwrite [write-opts] rw=randwrite registerfiles=1 sqthread_poll=1 sqthread_poll_cpu=0 [randwrite-opts] rw=randwrite registerfiles=1 sqthread_poll=1 sqthread_poll_cpu=0 Tested-by: Vincent Fu <vincent.fu@xxxxxxxxxxx>