diff options
author | Hannes Reinecke <hare@suse.de> | 2020-06-02 13:09:54 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-06-05 14:59:53 -0400 |
commit | 69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2 (patch) | |
tree | e4cfef8b7e4e9b31ec026534e20692ec73103828 /drivers/md/dm-zoned-target.c | |
parent | 22c1ef66c4cbb82baf81a28abedfe8ad20ad9126 (diff) | |
download | linux-69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2.tar.bz2 |
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.c | 1 |
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; |