]> git.baikalelectronics.ru Git - kernel.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)
commitdf0f9e6de1f3d25d7fd6af8d08f005a490d3196c
treef27512085be637385073999cb414b2dea9d5459e
parent123884ab1dd35dc98f48bd7931d1232ad7070dcf
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