[PATCH v2 0/3] block zoned cleanups

Pankaj Raghav p.raghav at samsung.com
Tue Jan 10 06:36:32 PST 2023


Hi Jens,
  It is still unclear whether the support for non-po2 zone size devices
  will be added anytime soon [1]. I have extracted out the cleanup
  patches that doesn't do any functional change but improves the
  readability by adding helpers. This also helps a bit to
  maintain off-tree support as there is an interest to have this feature
  in some companies.

[1] https://lore.kernel.org/lkml/20220923173618.6899-1-p.raghav@samsung.com/

Changes since v1:
- Remove blk_is_zoned() check in bdev_{is_zone_start, offset_from_zone_start} (Damien)
- Minor spelling and variable name changes (Bart and Johannes)
- Remove zonefs patch for now (Damien)
- Send dm patches separately(Christoph)

Pankaj Raghav (3):
  block: remove superfluous check for request queue in bdev_is_zoned()
  block: add a new helper bdev_{is_zone_start, offset_from_zone_start}
  block: introduce bdev_zone_no helper

 block/blk-core.c          |  2 +-
 block/blk-zoned.c         |  4 ++--
 drivers/nvme/target/zns.c |  3 +--
 include/linux/blkdev.h    | 22 +++++++++++++++++-----
 4 files changed, 21 insertions(+), 10 deletions(-)

-- 
2.25.1




More information about the Linux-nvme mailing list