summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
authorJeffle Xu <jefflexu@linux.alibaba.com>2021-02-09 04:34:36 +0100
committerMike Snitzer <snitzer@redhat.com>2021-02-09 14:45:30 +0100
commit5b0fab508992c2e120971da658ce80027acbc405 (patch)
tree1560ab26e53bf933c464b545810808273e75a4c5 /drivers/md/dm.c
parentdm table: fix iterate_devices based device capability checks (diff)
downloadlinux-5b0fab508992c2e120971da658ce80027acbc405.tar.xz
linux-5b0fab508992c2e120971da658ce80027acbc405.zip
dm table: fix DAX iterate_devices based device capability checks
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>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 65b21159a7a6..64fda1429e39 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1133,7 +1133,7 @@ static bool dm_dax_supported(struct dax_device *dax_dev, struct block_device *bd
if (!map)
goto out;
- ret = dm_table_supports_dax(map, device_supports_dax, &blocksize);
+ ret = dm_table_supports_dax(map, device_not_dax_capable, &blocksize);
out:
dm_put_live_table(md, srcu_idx);