]> git.baikalelectronics.ru Git - kernel.git/commit
block: add req op to reset all zones and flag
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 1 Aug 2019 17:26:35 +0000 (10:26 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 5 Aug 2019 03:41:29 +0000 (21:41 -0600)
commit72ff9af25eccb5d3bbac6693e67407b9a00440f8
treeeb42a2ac7f03cae193654c77b051c8216cd43182
parent3e9d500c9f77628c464990a0e89b5b0d4830c0e1
block: add req op to reset all zones and flag

This patch introduces a new request operation REQ_OP_ZONE_RESET_ALL.
This is useful for the applications like mkfs where it needs to reset
all the zones present on the underlying block device. As part for this
patch we also introduce new QUEUE_FLAG_ZONE_RESETALL which indicates the
queue zone reset all capability and corresponding helper macro.

Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk_types.h
include/linux/blkdev.h