diff options
author | Shaun Tancheff <shaun.tancheff@seagate.com> | 2016-10-18 15:40:32 +0900 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-10-18 10:02:05 -0600 |
commit | 2d253440b5afb128d22ccdae812dde9ba77a2cca (patch) | |
tree | 40b59abcd6c952af8d13fdd11d9e13254a9915f7 /include/linux/blk_types.h | |
parent | 987b3b26eb7b19960160505faf9b2f50ae77e14d (diff) | |
download | linux-2d253440b5afb128d22ccdae812dde9ba77a2cca.tar.gz linux-2d253440b5afb128d22ccdae812dde9ba77a2cca.tar.xz |
block: Define zoned block device operations
Define REQ_OP_ZONE_REPORT and REQ_OP_ZONE_RESET for handling zones of
host-managed and host-aware zoned block devices. With with these two
new operations, the total number of operations defined reaches 8 and
still fits with the 3 bits definition of REQ_OP_BITS.
Signed-off-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: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk_types.h')
-rw-r--r-- | include/linux/blk_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index cd395ecec99d..dd50dce89a80 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -243,6 +243,8 @@ enum req_op { REQ_OP_SECURE_ERASE, /* request to securely erase sectors */ REQ_OP_WRITE_SAME, /* write same block many times */ REQ_OP_FLUSH, /* request for cache flush */ + REQ_OP_ZONE_REPORT, /* Get zone information */ + REQ_OP_ZONE_RESET, /* Reset a zone write pointer */ }; #define REQ_OP_BITS 3 |