diff options
author | Shaun Tancheff <shaun.tancheff@seagate.com> | 2016-10-18 08:40:32 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-10-18 18:02:05 +0200 |
commit | 2d253440b5afb128d22ccdae812dde9ba77a2cca (patch) | |
tree | 40b59abcd6c952af8d13fdd11d9e13254a9915f7 /block/blk-core.c | |
parent | block: update chunk_sectors in blk_stack_limits() (diff) | |
download | linux-2d253440b5afb128d22ccdae812dde9ba77a2cca.tar.xz linux-2d253440b5afb128d22ccdae812dde9ba77a2cca.zip |
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 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 14d7c0740dc0..e4eda5d2aa56 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1941,6 +1941,10 @@ generic_make_request_checks(struct bio *bio) case REQ_OP_WRITE_SAME: if (!bdev_write_same(bio->bi_bdev)) goto not_supported; + case REQ_OP_ZONE_REPORT: + case REQ_OP_ZONE_RESET: + if (!bdev_is_zoned(bio->bi_bdev)) + goto not_supported; break; default: break; |