]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - block/blk-merge.c
block: inherit CPU completion on bio->rq and rq->rq merges
[linux-2.6-omap-h63xx.git] / block / blk-merge.c
index c77196d55899729ec6ddceccc80ef44b69f24f42..908d3e11ac523e032f3f73a91932eb49f1a5994a 100644 (file)
@@ -400,6 +400,8 @@ static int attempt_merge(struct request_queue *q, struct request *req,
        }
 
        req->ioprio = ioprio_best(req->ioprio, next->ioprio);
+       if (blk_rq_cpu_valid(next))
+               req->cpu = next->cpu;
 
        __blk_put_request(q, next);
        return 1;