summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-sysfs.c
diff options
context:
space:
mode:
authorShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>2020-06-19 09:49:56 +0200
committerMike Snitzer <snitzer@redhat.com>2020-06-19 18:29:39 +0200
commitf2cd9a5e85dc25e10f6318bc6fbcb7dcff262561 (patch)
tree8a4cfca800c0266879e513dce92c8c242c160f70 /drivers/md/dm-sysfs.c
parentdm zoned: Fix random zone reclaim selection (diff)
downloadlinux-f2cd9a5e85dc25e10f6318bc6fbcb7dcff262561.tar.xz
linux-f2cd9a5e85dc25e10f6318bc6fbcb7dcff262561.zip
dm zoned: Fix reclaim zone selection
When dm zoned has multiple devices, random zones are never selected for reclaim if all reserved sequential write zones are in use and no sequential write required zones can be selected for reclaim. This can lead to deadlocks as selecting a cache zone allows reclaiming a sequential zone, ensuring forward progress. Fix this by always defaulting to selecting a random zone when no sequential write required zone can be selected. [Damien: fix commit message] Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com> Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-sysfs.c')
0 files changed, 0 insertions, 0 deletions