]> git.baikalelectronics.ru Git - kernel.git/commit
block: add max_open_zones to blk-sysfs
authorNiklas Cassel <niklas.cassel@wdc.com>
Tue, 14 Jul 2020 21:18:23 +0000 (23:18 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jul 2020 20:26:11 +0000 (14:26 -0600)
commit9b541bbeed1d659493def3bbfdbf921a0a5d9a66
treec1c7d77dc70542e0fbfba3694d309f0c18bfc8fd
parentdb9043bee1b7de1bd44343678650158ca8ba006a
block: add max_open_zones to blk-sysfs

Add a new max_open_zones definition in the sysfs documentation.
This definition will be common for all devices utilizing the zoned block
device support in the kernel.

Export max open zones according to this new definition for NVMe Zoned
Namespace devices, ZAC ATA devices (which are treated as SCSI devices by
the kernel), and ZBC SCSI devices.

Add the new max_open_zones member to struct request_queue, rather
than as a queue limit, since this property cannot be split across stacking
drivers.

Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Javier González <javier@javigon.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Documentation/ABI/testing/sysfs-block
Documentation/block/queue-sysfs.rst
block/blk-sysfs.c
drivers/nvme/host/zns.c
drivers/scsi/sd_zbc.c
include/linux/blkdev.h