]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
dm zoned: allocate zone by device index
authorHannes Reinecke <hare@suse.de>
Tue, 2 Jun 2020 11:09:53 +0000 (13:09 +0200)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 Jun 2020 18:59:52 +0000 (14:59 -0400)
commit22c1ef66c4cbb82baf81a28abedfe8ad20ad9126
treef27512085be637385073999cb414b2dea9d5459e
parent4dba12881f882b629774796bb8655f5b1415d803
dm zoned: allocate zone by device index

When allocating a zone, pass in an indicator on which device the zone
should be allocated; this increases performance for a multi-device
setup because reclaim will now allocate zones on the device for which
reclaim is running.

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>
drivers/md/dm-zoned-metadata.c
drivers/md/dm-zoned-reclaim.c
drivers/md/dm-zoned.h