diff options
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 3a78b00edd71..1f61b74867e4 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -483,7 +483,7 @@ struct request_queue *blk_alloc_queue_node(gfp_t gfp_mask, int node_id) | |||
483 | if (!q) | 483 | if (!q) |
484 | return NULL; | 484 | return NULL; |
485 | 485 | ||
486 | q->id = ida_simple_get(&blk_queue_ida, 0, 0, GFP_KERNEL); | 486 | q->id = ida_simple_get(&blk_queue_ida, 0, 0, gfp_mask); |
487 | if (q->id < 0) | 487 | if (q->id < 0) |
488 | goto fail_q; | 488 | goto fail_q; |
489 | 489 | ||
@@ -1277,7 +1277,8 @@ static bool attempt_plug_merge(struct request_queue *q, struct bio *bio, | |||
1277 | list_for_each_entry_reverse(rq, &plug->list, queuelist) { | 1277 | list_for_each_entry_reverse(rq, &plug->list, queuelist) { |
1278 | int el_ret; | 1278 | int el_ret; |
1279 | 1279 | ||
1280 | (*request_count)++; | 1280 | if (rq->q == q) |
1281 | (*request_count)++; | ||
1281 | 1282 | ||
1282 | if (rq->q != q || !blk_rq_merge_ok(rq, bio)) | 1283 | if (rq->q != q || !blk_rq_merge_ok(rq, bio)) |
1283 | continue; | 1284 | continue; |