dm: set QUEUE_FLAG_DAX accordingly in dm_table_set_restrictions()
authorMike Snitzer <snitzer@redhat.com>
Tue, 5 Dec 2017 04:28:32 +0000 (23:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:29:23 +0000 (16:29 +0200)
commit0605fa6daa6642c276ef037b3246595e4de53491
tree9fcb200c28c58eb256c92cb939125ac88c7a5c57
parent3729e5561e1e4a0319a2c794d8ae78b8baea4a36
dm: set QUEUE_FLAG_DAX accordingly in dm_table_set_restrictions()

commit ad3793fc3945173f64d82d05d3ecde41f6c0435c upstream.

Rather than having DAX support be unique by setting it based on table
type in dm_setup_md_queue().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-table.c
drivers/md/dm.c