diff options
author | Ajay Joshi <ajay.joshi@wdc.com> | 2019-10-27 15:05:48 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-07 14:36:08 +0100 |
commit | 2e2d6f7e44a2b9f96ca8af445ae0150a6cefde41 (patch) | |
tree | 48a9e5ba6ca01e06d3288925486ba68b5c52b7a0 /drivers/md/dm-linear.c | |
parent | Merge branch 'for-5.5/block' into for-5.5/drivers (diff) | |
download | linux-2e2d6f7e44a2b9f96ca8af445ae0150a6cefde41.tar.xz linux-2e2d6f7e44a2b9f96ca8af445ae0150a6cefde41.zip |
dm: add zone open, close and finish support
Implement REQ_OP_ZONE_OPEN, REQ_OP_ZONE_CLOSE and REQ_OP_ZONE_FINISH
support to allow explicit control of zone states.
Contains contributions from Matias Bjorling, Hans Holmberg and
Damien Le Moal.
Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ajay Joshi <ajay.joshi@wdc.com>
Signed-off-by: Matias Bjorling <matias.bjorling@wdc.com>
Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md/dm-linear.c')
-rw-r--r-- | drivers/md/dm-linear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-linear.c b/drivers/md/dm-linear.c index ecefe6703736..97acafd48c85 100644 --- a/drivers/md/dm-linear.c +++ b/drivers/md/dm-linear.c @@ -90,7 +90,7 @@ static void linear_map_bio(struct dm_target *ti, struct bio *bio) struct linear_c *lc = ti->private; bio_set_dev(bio, lc->dev->bdev); - if (bio_sectors(bio) || bio_op(bio) == REQ_OP_ZONE_RESET) + if (bio_sectors(bio) || op_is_zone_mgmt(bio_op(bio))) bio->bi_iter.bi_sector = linear_map_sector(ti, bio->bi_iter.bi_sector); } |