On 4/21/23 02:12, Bart Van Assche wrote: > On 4/20/23 02:23, Niklas Cassel wrote: >> With your change above, we would start rejecting such devices. >> >> Is this reduction of supported NVMe ZNS SSD devices really desired? > > Hi Niklas, > > This is not my intention. A possible solution is to modify the NVMe > driver and SCSI core such that the "zone is full" information is stored > in struct request when a command completes. That will remove the need > for the mq-deadline scheduler to know the zone capacity. I am not following... Why would the scheduler need to know the zone capacity ? If the user does stupid things like accessing sectors between zone capacity and zone size or trying to write to a full zone, the commands will be failed by the drive and I do not see why the scheduler need to care about that. > > Bart.