summaryrefslogtreecommitdiff
path: root/drivers/md/dm-zoned-target.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2020-06-02 14:09:54 +0300
committerMike Snitzer <snitzer@redhat.com>2020-06-05 21:59:53 +0300
commit69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2 (patch)
treee4cfef8b7e4e9b31ec026534e20692ec73103828 /drivers/md/dm-zoned-target.c
parent22c1ef66c4cbb82baf81a28abedfe8ad20ad9126 (diff)
downloadlinux-69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2.tar.xz
dm zoned: select reclaim zone based on device index
per-device reclaim should select zones on that device only. Signed-off-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-zoned-target.c')
-rw-r--r--drivers/md/dm-zoned-target.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/dm-zoned-target.c b/drivers/md/dm-zoned-target.c
index fc30c78dffdb..a907a9446c0b 100644
--- a/drivers/md/dm-zoned-target.c
+++ b/drivers/md/dm-zoned-target.c
@@ -738,6 +738,7 @@ static int dmz_get_zoned_device(struct dm_target *ti, char *path,
dev = &dmz->dev[idx];
}
dev->bdev = bdev;
+ dev->dev_idx = idx;
(void)bdevname(dev->bdev, dev->name);
dev->capacity = i_size_read(bdev->bd_inode) >> SECTOR_SHIFT;