blk-flush: move the queue kick into
[linux-2.6-block.git] / block / blk-core.c
index d34433ae791781b5799edfa838f058922443e78d..795154e54a75f83103085d04ffa0151b4f7ee8e3 100644 (file)
@@ -1725,6 +1725,8 @@ int blk_insert_cloned_request(struct request_queue *q, struct request *rq)
                where = ELEVATOR_INSERT_FLUSH;
 
        add_acct_request(q, rq, where);
+       if (where == ELEVATOR_INSERT_FLUSH)
+               __blk_run_queue(q);
        spin_unlock_irqrestore(q->queue_lock, flags);
 
        return 0;