diff options
author | Mike Snitzer <snitzer@redhat.com> | 2017-12-05 07:28:32 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-12-13 20:33:32 +0300 |
commit | ad3793fc3945173f64d82d05d3ecde41f6c0435c (patch) | |
tree | ef751eaaf1e7997bf33766e9fde6eaa67962607b /drivers/md/dm.c | |
parent | 3d7f45625a84696f61c6470a887bdc65180937a9 (diff) | |
download | linux-ad3793fc3945173f64d82d05d3ecde41f6c0435c.tar.xz |
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.c')
-rw-r--r-- | drivers/md/dm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 4e7682afebfa..308d178fff73 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2034,9 +2034,6 @@ int dm_setup_md_queue(struct mapped_device *md, struct dm_table *t) case DM_TYPE_DAX_BIO_BASED: dm_init_normal_md_queue(md); blk_queue_make_request(md->queue, dm_make_request); - - if (type == DM_TYPE_DAX_BIO_BASED) - queue_flag_set_unlocked(QUEUE_FLAG_DAX, md->queue); break; case DM_TYPE_NONE: WARN_ON_ONCE(true); |