]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - block/blk-mq.c
blk-mq: add tag allocation policy
[mirror_ubuntu-bionic-kernel.git] / block / blk-mq.c
index a7d4a988516f173e8f942a183e815bc1e33ea602..eb8e694fda0655cd9fb858c268336fb5a58f0e68 100644 (file)
@@ -1374,7 +1374,8 @@ static struct blk_mq_tags *blk_mq_init_rq_map(struct blk_mq_tag_set *set,
        size_t rq_size, left;
 
        tags = blk_mq_init_tags(set->queue_depth, set->reserved_tags,
-                               set->numa_node);
+                               set->numa_node,
+                               BLK_MQ_FLAG_TO_ALLOC_POLICY(set->flags));
        if (!tags)
                return NULL;