]> git.baikalelectronics.ru Git - kernel.git/commit
dax: check for QUEUE_FLAG_DAX in bdev_dax_supported()
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Tue, 26 Jun 2018 22:30:40 +0000 (16:30 -0600)
committerMike Snitzer <snitzer@redhat.com>
Thu, 28 Jun 2018 20:06:08 +0000 (16:06 -0400)
commit42b75ee7f1f379e0bc1afbc07c7128ea76fa5be6
tree4e2e479864e693f0994ce5c39013d4490844c5c4
parent2b22f7ed4c0e03c9e82f8c547708a0855753b6b9
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 33d12bd7987e ("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>
drivers/dax/super.c