]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
dm table: fix DAX iterate_devices based device capability checks
authorJeffle Xu <jefflexu@linux.alibaba.com>
Tue, 9 Feb 2021 03:34:36 +0000 (22:34 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Apr 2021 16:31:49 +0000 (18:31 +0200)
commit3a627573ade695eb9144b1a3d6426b419db5a59e
treebb6574064acfce22b5a34416fb8f74f292e9a617
parent9c3d34fb002d72512722ada9899710ddd996bb17
dm table: fix DAX iterate_devices based device capability checks

BugLink: https://bugs.launchpad.net/bugs/1920244
commit 5b0fab508992c2e120971da658ce80027acbc405 upstream.

Fix dm_table_supports_dax() and invert logic of both
iterate_devices_callout_fn so that all devices' DAX capabilities are
properly checked.

Fixes: 545ed20e6df6 ("dm: add infrastructure for DAX support")
Cc: stable@vger.kernel.org
Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h