]> git.baikalelectronics.ru Git - 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)
committerMike Snitzer <snitzer@redhat.com>
Tue, 9 Feb 2021 13:45:30 +0000 (08:45 -0500)
commit25dc592b4c8f26b1700b99da17ae801507655eee
tree1560ab26e53bf933c464b545810808273e75a4c5
parent4cacc1db23a0dab46085a83ebe0f5562afb9d239
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: 7eda32b8aff4 ("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>
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h