summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorHou Tao <houtao1@huawei.com>2020-06-15 11:33:23 +0800
committerMike Snitzer <snitzer@redhat.com>2020-06-17 12:25:34 -0400
commit7b2377486767503d47265e4d487a63c651f6b55d (patch)
tree366e1355c4300b600958f4dd546abb5db9364f92 /drivers/md
parentc69cb1d17b6258830b0a97dde73525c1006898f8 (diff)
dm zoned: assign max_io_len correctly
The unit of max_io_len is sector instead of byte (spotted through code review), so fix it. Fixes: 3b1a94c88b79 ("dm zoned: drive-managed zoned block device target") Cc: stable@vger.kernel.org Signed-off-by: Hou Tao <houtao1@huawei.com> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-zoned-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c
index a907a9446c0b..cf915009c306 100644
--- a/drivers/md/dm-zoned-target.c
+++ b/drivers/md/dm-zoned-target.c
@@ -890,7 +890,7 @@ static int dmz_ctr(struct dm_target *ti, unsigned int argc, char **argv)
}
/* Set target (no write same support) */
- ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata) << 9;
+ ti->max_io_len = dmz_zone_nr_sectors(dmz->metadata);
ti->num_flush_bios = 1;
ti->num_discard_bios = 1;
ti->num_write_zeroes_bios = 1;