Commit fe47cb9b authored by Jeffle Xu's avatar Jeffle Xu Committed by Cheng Jian
Browse files

dm table: fix DAX iterate_devices based device capability checks



stable inclusion
from linux-4.19.180
commit 16ee4c4957e8a92c2d03b8b028e11664d825c167

--------------------------------

commit 5b0fab50 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: 545ed20e ("dm: add infrastructure for DAX support")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJeffle Xu <jefflexu@linux.alibaba.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
[jeffle: no dax synchronous]
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
parent a87da24e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment