]> git.baikalelectronics.ru Git - kernel.git/commit
dm zoned: separate random and cache zones
authorHannes Reinecke <hare@suse.de>
Tue, 19 May 2020 08:14:20 +0000 (10:14 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 20 May 2020 21:09:49 +0000 (17:09 -0400)
commit1305c697a7157048ae4bac83f132dd185b0b0d10
tree73da1a362f1bfd5a3f4d3bee186e81e536a46a2b
parentf713bd39fce0721b2fb335978f82bbf8eb9b0814
dm zoned: separate random and cache zones

Instead of lumping emulated zones together with random zones we
should be handling them as separate 'cache' zones. This improves
code readability and allows an easier implementation of different
cache policies.

Also add additional allocation flags, to separate the type (cache,
random, or sequential) from the purpose (eg reclaim).

Also switch the allocation policy to not use random zones as buffer
zones if cache zones are present. This avoids a performance drop when
all cache zones are used.

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