Message ID | 20220727162245.209794-1-p.raghav@samsung.com (mailing list archive) |
---|---|
Headers | show |
Series | support non power of 2 zoned device | expand |
On 7/27/22 09:22, Pankaj Raghav wrote: > This series adds support to npo2 zoned devices in the block and nvme > layer and a new **dm target** is added: dm-po2z-target. This new > target will be initially used for filesystems such as btrfs and > f2fs that does not have native npo2 zone support. Should any SCSI changes be included in this patch series? From sd_zbc.c: if (!is_power_of_2(zone_blocks)) { sd_printk(KERN_ERR, sdkp, "Zone size %llu is not a power of two.\n", zone_blocks); return -EINVAL; } Thanks, Bart.
On 7/28/22 08:19, Bart Van Assche wrote: > On 7/27/22 09:22, Pankaj Raghav wrote: >> This series adds support to npo2 zoned devices in the block and nvme >> layer and a new **dm target** is added: dm-po2z-target. This new >> target will be initially used for filesystems such as btrfs and >> f2fs that does not have native npo2 zone support. > > Should any SCSI changes be included in this patch series? From sd_zbc.c: > > if (!is_power_of_2(zone_blocks)) { > sd_printk(KERN_ERR, sdkp, > "Zone size %llu is not a power of two.\n", > zone_blocks); > return -EINVAL; > } There are no non-power of 2 SMR drives on the market and no plans to have any as far as I know. Users want power of 2 zone size. So I think it is better to leave sd_zbc & scsi_debug as is for now. > > Thanks, > > Bart.
On 7/27/22 18:52, Damien Le Moal wrote: > On 7/28/22 08:19, Bart Van Assche wrote: >> On 7/27/22 09:22, Pankaj Raghav wrote: >>> This series adds support to npo2 zoned devices in the block and nvme >>> layer and a new **dm target** is added: dm-po2z-target. This new >>> target will be initially used for filesystems such as btrfs and >>> f2fs that does not have native npo2 zone support. >> >> Should any SCSI changes be included in this patch series? From sd_zbc.c: >> >> if (!is_power_of_2(zone_blocks)) { >> sd_printk(KERN_ERR, sdkp, >> "Zone size %llu is not a power of two.\n", >> zone_blocks); >> return -EINVAL; >> } > > There are no non-power of 2 SMR drives on the market and no plans to have > any as far as I know. Users want power of 2 zone size. So I think it is > better to leave sd_zbc & scsi_debug as is for now. Zoned UFS devices will support ZBC and may have a zone size that is not a power of two. Thanks, Bart.
On 7/28/22 11:58, Bart Van Assche wrote: > On 7/27/22 18:52, Damien Le Moal wrote: >> On 7/28/22 08:19, Bart Van Assche wrote: >>> On 7/27/22 09:22, Pankaj Raghav wrote: >>>> This series adds support to npo2 zoned devices in the block and nvme >>>> layer and a new **dm target** is added: dm-po2z-target. This new >>>> target will be initially used for filesystems such as btrfs and >>>> f2fs that does not have native npo2 zone support. >>> >>> Should any SCSI changes be included in this patch series? From sd_zbc.c: >>> >>> if (!is_power_of_2(zone_blocks)) { >>> sd_printk(KERN_ERR, sdkp, >>> "Zone size %llu is not a power of two.\n", >>> zone_blocks); >>> return -EINVAL; >>> } >> >> There are no non-power of 2 SMR drives on the market and no plans to have >> any as far as I know. Users want power of 2 zone size. So I think it is >> better to leave sd_zbc & scsi_debug as is for now. > > Zoned UFS devices will support ZBC and may have a zone size that is not > a power of two. OK. So the check needs to be removed then and the entire zone append emulation checked carefully. The divisions for zone no etc on non power of 2 zone size devices in zone append emulation hot path are really not welcome though. > > Thanks, > > Bart.
Hi Bart, On 2022-07-28 01:19, Bart Van Assche wrote: > On 7/27/22 09:22, Pankaj Raghav wrote: >> This series adds support to npo2 zoned devices in the block and nvme >> layer and a new **dm target** is added: dm-po2z-target. This new >> target will be initially used for filesystems such as btrfs and >> f2fs that does not have native npo2 zone support. > > Should any SCSI changes be included in this patch series? From sd_zbc.c: > > if (!is_power_of_2(zone_blocks)) { > sd_printk(KERN_ERR, sdkp, > "Zone size %llu is not a power of two.\n", > zone_blocks); > return -EINVAL; > } > I would keep these changes out of the current patch series because it will also increase the test scope. I think once the block layer constraint is removed as a part of this series, we can work on the SCSI changes in the next cycle. > Thanks, > > Bart.
On 7/28/22 04:57, Pankaj Raghav wrote: > Hi Bart, > > On 2022-07-28 01:19, Bart Van Assche wrote: >> On 7/27/22 09:22, Pankaj Raghav wrote: >>> This series adds support to npo2 zoned devices in the block and nvme >>> layer and a new **dm target** is added: dm-po2z-target. This new >>> target will be initially used for filesystems such as btrfs and >>> f2fs that does not have native npo2 zone support. >> >> Should any SCSI changes be included in this patch series? From sd_zbc.c: >> >> if (!is_power_of_2(zone_blocks)) { >> sd_printk(KERN_ERR, sdkp, >> "Zone size %llu is not a power of two.\n", >> zone_blocks); >> return -EINVAL; >> } >> > I would keep these changes out of the current patch series because it > will also increase the test scope. I think once the block layer > constraint is removed as a part of this series, we can work on the SCSI > changes in the next cycle. That's fine with me. Thanks, Bart.