diff options
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 93a4e1956915..35da31841eda 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -1850,6 +1850,7 @@ static void blk_mq_map_swqueue(struct request_queue *q, | |||
1850 | hctx->tags = set->tags[i]; | 1850 | hctx->tags = set->tags[i]; |
1851 | WARN_ON(!hctx->tags); | 1851 | WARN_ON(!hctx->tags); |
1852 | 1852 | ||
1853 | cpumask_copy(hctx->tags->cpumask, hctx->cpumask); | ||
1853 | /* | 1854 | /* |
1854 | * Set the map size to the number of mapped software queues. | 1855 | * Set the map size to the number of mapped software queues. |
1855 | * This is more accurate and more efficient than looping | 1856 | * This is more accurate and more efficient than looping |
@@ -1863,14 +1864,6 @@ static void blk_mq_map_swqueue(struct request_queue *q, | |||
1863 | hctx->next_cpu = cpumask_first(hctx->cpumask); | 1864 | hctx->next_cpu = cpumask_first(hctx->cpumask); |
1864 | hctx->next_cpu_batch = BLK_MQ_CPU_WORK_BATCH; | 1865 | hctx->next_cpu_batch = BLK_MQ_CPU_WORK_BATCH; |
1865 | } | 1866 | } |
1866 | |||
1867 | queue_for_each_ctx(q, ctx, i) { | ||
1868 | if (!cpumask_test_cpu(i, online_mask)) | ||
1869 | continue; | ||
1870 | |||
1871 | hctx = q->mq_ops->map_queue(q, i); | ||
1872 | cpumask_set_cpu(i, hctx->tags->cpumask); | ||
1873 | } | ||
1874 | } | 1867 | } |
1875 | 1868 | ||
1876 | static void queue_set_hctx_shared(struct request_queue *q, bool shared) | 1869 | static void queue_set_hctx_shared(struct request_queue *q, bool shared) |