All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 00/11] Zoned block device support improvements
@ 2018-10-12 10:08 Damien Le Moal
  2018-10-12 10:08 ` [PATCH v4 01/11] scsi: sd_zbc: Rearrange code Damien Le Moal
                   ` (12 more replies)
  0 siblings, 13 replies; 53+ messages in thread
From: Damien Le Moal @ 2018-10-12 10:08 UTC (permalink / raw)
  To: linux-block, Jens Axboe, linux-scsi, Martin K . Petersen,
	dm-devel, Mike Snitzer
  Cc: Christoph Hellwig, Matias Bjorling

This series improves zoned block device support (reduce overhead) and
introduces many simplifications to the code (overall, there are more deletions
than insertions).

In more details:
* Patches 1 to 3 are SCSI side (sd driver) cleanups and improvements reducing
  the overhead of report zones command execution during disk scan and
  revalidation.
* Patches 4 to 9 improve the useability and user API of zoned block devices.
* Patch 10 is the main part of this series. This patch replaces the
  REQ_OP_ZONE_REPORT BIO/request operation for executing report zones commands
  with a block device file operation, removing the need for the command reply
  payload in-place rewriting in the BIO buffer. This leads to major
  simplification of the code in many places.
* Patch 11 further simplifies the code of low level drivers by providing a
  generic implementation of zoned block device request queue zone bitmaps
  initialization and revalidation.

Please consider the addition of these patches in 4.20.
Comments are as always welcome.

Changes from v3:
* Changed the interface of sd_zbc_check_zones() in patch 3 to return an int and
  added an argument to return the zone size to avoid potential type overflow
  with the new int return type.

Changes from v2:
* Reworked patch 9 to preserve the declaration of struct request_queue nr_zones
  field being conditional on CONFIG_BLK_DEV_ZONED

Changes from v1:
* Addressed Christoph's and Bart's comments
* Fixed several compilation errors with zoned block device support disabled
* Rebased on latest rc including the most recent dm patches

Christoph Hellwig (1):
  block: add a report_zones method

Damien Le Moal (10):
  scsi: sd_zbc: Rearrange code
  scsi: sd_zbc: Reduce boot device scan and revalidate time
  scsi: sd_zbc: Fix sd_zbc_check_zones() error checks
  block: Introduce blkdev_nr_zones() helper
  block: Limit allocation of zone descriptors for report zones
  block: Introduce BLKGETZONESZ ioctl
  block: Introduce BLKGETNRZONES ioctl
  block: Improve zone reset execution
  block: Expose queue nr_zones in sysfs
  block: Introduce blk_revalidate_disk_zones()

 block/blk-core.c               |   1 -
 block/blk-lib.c                |  13 +-
 block/blk-mq-debugfs.c         |   1 -
 block/blk-sysfs.c              |  13 +
 block/blk-zoned.c              | 359 ++++++++++++++---------
 block/blk.h                    |   8 +
 block/ioctl.c                  |   4 +
 drivers/block/null_blk.h       |  11 +-
 drivers/block/null_blk_main.c  |  30 +-
 drivers/block/null_blk_zoned.c |  57 +---
 drivers/md/dm-flakey.c         |  30 +-
 drivers/md/dm-linear.c         |  35 ++-
 drivers/md/dm-table.c          |  10 +
 drivers/md/dm-zoned-target.c   |   3 +-
 drivers/md/dm.c                | 169 ++++++-----
 drivers/scsi/sd.c              |  15 +-
 drivers/scsi/sd.h              |  15 +-
 drivers/scsi/sd_zbc.c          | 501 +++++++++------------------------
 include/linux/blk_types.h      |   2 -
 include/linux/blkdev.h         |  30 +-
 include/linux/device-mapper.h  |  12 +-
 include/trace/events/f2fs.h    |   1 -
 include/uapi/linux/blkzoned.h  |   3 +
 23 files changed, 602 insertions(+), 721 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2018-10-25 14:30 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-12 10:08 [PATCH v4 00/11] Zoned block device support improvements Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 01/11] scsi: sd_zbc: Rearrange code Damien Le Moal
2018-10-16  4:48   ` Martin K. Petersen
2018-10-16  4:48     ` Martin K. Petersen
2018-10-12 10:08 ` [PATCH v4 02/11] scsi: sd_zbc: Reduce boot device scan and revalidate time Damien Le Moal
2018-10-16  4:50   ` Martin K. Petersen
2018-10-16  4:50     ` Martin K. Petersen
2018-10-12 10:08 ` [PATCH v4 03/11] scsi: sd_zbc: Fix sd_zbc_check_zones() error checks Damien Le Moal
2018-10-12 10:23   ` Hannes Reinecke
2018-10-12 10:23     ` Hannes Reinecke
2018-10-12 11:41     ` Damien Le Moal
2018-10-12 11:41       ` Damien Le Moal
2018-10-16  4:51   ` Martin K. Petersen
2018-10-16  4:51     ` Martin K. Petersen
2018-10-17  7:21   ` Christoph Hellwig
2018-10-17  7:21     ` Christoph Hellwig
2018-10-12 10:08 ` [PATCH v4 04/11] block: Introduce blkdev_nr_zones() helper Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 05/11] block: Limit allocation of zone descriptors for report zones Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 06/11] block: Introduce BLKGETZONESZ ioctl Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 07/11] block: Introduce BLKGETNRZONES ioctl Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 08/11] block: Improve zone reset execution Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 09/11] block: Expose queue nr_zones in sysfs Damien Le Moal
2018-10-12 10:08 ` [PATCH v4 10/11] block: add a report_zones method Damien Le Moal
2018-10-16  4:55   ` Martin K. Petersen
2018-10-16  4:55     ` Martin K. Petersen
2018-10-16 15:17   ` Mike Snitzer
2018-10-16 15:17     ` Mike Snitzer
2018-10-12 10:08 ` [PATCH v4 11/11] block: Introduce blk_revalidate_disk_zones() Damien Le Moal
2018-10-16  5:00   ` Martin K. Petersen
2018-10-16  5:00     ` Martin K. Petersen
2018-10-16 15:17   ` Mike Snitzer
2018-10-16 15:17     ` Mike Snitzer
2018-10-13 22:43 ` [PATCH v4 00/11] Zoned block device support improvements Jens Axboe
2018-10-15  0:45   ` Damien Le Moal
2018-10-15  0:45     ` Damien Le Moal
2018-10-16  2:34     ` Jens Axboe
2018-10-16  3:43       ` Damien Le Moal
2018-10-16  3:43         ` Damien Le Moal
2018-10-18  7:57       ` Damien Le Moal
2018-10-18  7:57         ` Damien Le Moal
2018-10-23 15:59 ` Jens Axboe
2018-10-24  2:26   ` Martin K. Petersen
2018-10-24  2:26     ` Martin K. Petersen
2018-10-24 15:03     ` Mike Snitzer
2018-10-24 15:03       ` Mike Snitzer
2018-10-24 15:37       ` Martin K. Petersen
2018-10-24 15:37         ` Martin K. Petersen
2018-10-24 16:04         ` Bart Van Assche
2018-10-24 16:04           ` Bart Van Assche
2018-10-25 14:30           ` Jens Axboe
2018-10-25 14:30             ` Jens Axboe
2018-10-24  8:04   ` Damien Le Moal
2018-10-24  8:04     ` Damien Le Moal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.