diff options
author | Hannes Reinecke <hare@suse.de> | 2020-06-02 13:09:54 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-06-05 20:59:53 +0200 |
commit | 69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2 (patch) | |
tree | e4cfef8b7e4e9b31ec026534e20692ec73103828 /drivers/md/dm-zoned-reclaim.c | |
parent | dm zoned: allocate zone by device index (diff) | |
download | linux-69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2.tar.xz linux-69875d443bc3bb1b2e1f77fe3da5ad5c8c729aa2.zip |
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-reclaim.c')
-rw-r--r-- | drivers/md/dm-zoned-reclaim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c index 5a04e34d17a9..2261b4dd60b7 100644 --- a/drivers/md/dm-zoned-reclaim.c +++ b/drivers/md/dm-zoned-reclaim.c @@ -370,7 +370,8 @@ static int dmz_do_reclaim(struct dmz_reclaim *zrc) int ret; /* Get a data zone */ - dzone = dmz_get_zone_for_reclaim(zmd, dmz_target_idle(zrc)); + dzone = dmz_get_zone_for_reclaim(zmd, zrc->dev_idx, + dmz_target_idle(zrc)); if (!dzone) { DMDEBUG("(%s/%u): No zone found to reclaim", dmz_metadata_label(zmd), zrc->dev_idx); |