[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 0/4] Add zone append write for zoned device
From: |
Sam Li |
Subject: |
[PATCH v6 0/4] Add zone append write for zoned device |
Date: |
Fri, 10 Mar 2023 18:31:02 +0800 |
This patch series add zone append operation based on the previous
zoned device support part. The file-posix driver is modified to
add zone append emulation using regular writes.
v6:
- add small fixes
v5:
- fix locking conditions and error handling
- drop some trival optimizations
- add tracing points for zone append
v4:
- fix lock related issues[Damien]
- drop all field in zone_mgmt op [Damien]
- fix state checks in zong_mgmt command [Damien]
- return start sector of wp when issuing zap req [Damien]
v3:
- only read wps when it is locked [Damien]
- allow last smaller zone case [Damien]
- add zone type and state checks in zone_mgmt command [Damien]
- fix RESET_ALL related problems
v2:
- split patch to two patches for better reviewing
- change BlockZoneWps's structure to an array of integers
- use only mutex lock on locking conditions of zone wps
- coding styles and clean-ups
v1:
- introduce zone append write
Sam Li (4):
file-posix: add tracking of the zone write pointers
block: introduce zone append write for zoned devices
qemu-iotests: test zone append operation
block: add some trace events for zone append
block/block-backend.c | 60 ++++++++
block/file-posix.c | 212 ++++++++++++++++++++++++++++-
block/io.c | 21 +++
block/io_uring.c | 4 +
block/linux-aio.c | 3 +
block/raw-format.c | 8 ++
block/trace-events | 2 +
include/block/block-common.h | 14 ++
include/block/block-io.h | 4 +
include/block/block_int-common.h | 8 ++
include/block/raw-aio.h | 4 +-
include/sysemu/block-backend-io.h | 9 ++
qemu-io-cmds.c | 65 +++++++++
tests/qemu-iotests/tests/zoned.out | 7 +
tests/qemu-iotests/tests/zoned.sh | 9 ++
15 files changed, 422 insertions(+), 8 deletions(-)
--
2.39.2
[PATCH v6 2/4] block: introduce zone append write for zoned devices, Sam Li, 2023/03/10
[PATCH v6 3/4] qemu-iotests: test zone append operation, Sam Li, 2023/03/10