aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2018-06-26 16:30:40 -0600
committerMike Snitzer <snitzer@redhat.com>2018-06-28 16:06:08 -0400
commit15256f6cc4b44f2e70503758150267fd2a53c0d6 (patch)
tree4e2e479864e693f0994ce5c39013d4490844c5c4 /drivers/md/dm-table.c
parentpmem: only set QUEUE_FLAG_DAX for fsdax mode (diff)
downloadlinux-dev-15256f6cc4b44f2e70503758150267fd2a53c0d6.tar.xz
linux-dev-15256f6cc4b44f2e70503758150267fd2a53c0d6.zip
dax: check for QUEUE_FLAG_DAX in bdev_dax_supported()
Add an explicit check for QUEUE_FLAG_DAX to __bdev_dax_supported(). This is needed for DM configurations where the first element in the dm-linear or dm-stripe target supports DAX, but other elements do not. Without this check __bdev_dax_supported() will pass for such devices, letting a filesystem on that device mount with the DAX option. Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Suggested-by: Mike Snitzer <snitzer@redhat.com> Fixes: commit 545ed20e6df6 ("dm: add infrastructure for DAX support") Cc: stable@vger.kernel.org Acked-by: Dan Williams <dan.j.williams@intel.com> Reviewed-by: Toshi Kani <toshi.kani@hpe.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions