]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - block/blk-core.c
block: apply blk_partition_remap to REQ_OP_ZONE_RESET
authorShaun Tancheff <shaun@tancheff.com>
Mon, 21 Nov 2016 21:52:23 +0000 (15:52 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 21 Nov 2016 22:08:24 +0000 (15:08 -0700)
commit778889d8412e36e666b1e4ce108373613c84b428
tree09f6a7ab673ed4be84f3f296ffd8c4e0d4f6c770
parent93c5bdf7ab71bbdae27f8f51fa175e06f000d69d
block: apply blk_partition_remap to REQ_OP_ZONE_RESET

If a ZBC device is partitioned and operations are performed on the partition
the zone information is rebased to the partition, however the zone reset
is not mapped from the partition to device as are other operations.

This causes the API (report zones / reset zone) to be unbalanced in this
regard. Checking for the zone reset op code explicitly will balance the
API.

Signed-off-by: Shaun Tancheff <shaun.tancheff@seagate.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c