-
- Downloads
block: Implement support for zoned block devices
Implement zoned block device zone information reporting and reset. Zone information are reported as struct blk_zone. This implementation does not differentiate between host-aware and host-managed device models and is valid for both. Two functions are provided: blkdev_report_zones for discovering the zone configuration of a zoned block device, and blkdev_reset_zones for resetting the write pointer of sequential zones. The helper function blk_queue_zone_size and bdev_zone_size are also provided for, as the name suggest, obtaining the zone size (in 512B sectors) of the zones of the device. Signed-off-by:Hannes Reinecke <hare@suse.de> [Damien: * Removed the zone cache * Implement report zones operation based on earlier proposal by Shaun Tancheff <shaun.tancheff@seagate.com>] Signed-off-by:
Damien Le Moal <damien.lemoal@hgst.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by:
Shaun Tancheff <shaun.tancheff@seagate.com> Tested-by:
Shaun Tancheff <shaun.tancheff@seagate.com> Signed-off-by:
Jens Axboe <axboe@fb.com>
Showing
- block/Kconfig 8 additions, 0 deletionsblock/Kconfig
- block/Makefile 1 addition, 0 deletionsblock/Makefile
- block/blk-zoned.c 257 additions, 0 deletionsblock/blk-zoned.c
- include/linux/blkdev.h 31 additions, 0 deletionsinclude/linux/blkdev.h
- include/uapi/linux/Kbuild 1 addition, 0 deletionsinclude/uapi/linux/Kbuild
- include/uapi/linux/blkzoned.h 103 additions, 0 deletionsinclude/uapi/linux/blkzoned.h
Loading
Please register or sign in to comment