]> 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)
commit4a49d871d97b58b40e01f01a1d079dfe85bc4943
treef27512085be637385073999cb414b2dea9d5459e
parent8dc1cd3cf70130a551f648e224ec573be16a7372
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