Currently NVMe driver rejects the ZNS device if zone-append is not supported natively. Make it accept the device and activate append-emulation instead. This is mostly borrowed from SCSI emulation. The other patch enforces a zone-friendly I/O scheduler for ZNS.
Kanchan Joshi (2): nvme: set io-scheduler requirement for ZNS nvme: add emulation for zone-append drivers/nvme/host/core.c | 41 +++++- drivers/nvme/host/nvme.h | 60 ++++++++ drivers/nvme/host/zns.c | 307 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 399 insertions(+), 9 deletions(-) -- 2.17.1