diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-12-04 23:28:32 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-12-13 12:33:32 -0500 |
commit | ad3793fc3945173f64d82d05d3ecde41f6c0435c (patch) | |
tree | ef751eaaf1e7997bf33766e9fde6eaa67962607b /drivers/md/dm-table.c | |
parent | 3d7f45625a84696f61c6470a887bdc65180937a9 (diff) | |
download | linux-ad3793fc3945173f64d82d05d3ecde41f6c0435c.tar.bz2 |
dm: set QUEUE_FLAG_DAX accordingly in dm_table_set_restrictions()
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>
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 7b22cc8d30f4..504e79bc3a55 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1823,6 +1823,8 @@ void dm_table_set_restrictions(struct dm_table *t, struct request_queue *q, } blk_queue_write_cache(q, wc, fua); + if (dm_table_supports_dax(t)) + queue_flag_set_unlocked(QUEUE_FLAG_DAX, q); if (dm_table_supports_dax_write_cache(t)) dax_write_cache(t->md->dax_dev, true); |