]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - block/elevator.c
block: change the request allocation/congestion logic to be sync/async based
[linux-2.6-omap-h63xx.git] / block / elevator.c
index 98259eda0ef66d4051cc5da958c0191f353b8158..ca6788a0195ac6d3e117009dcaecb7dd952c593c 100644 (file)
@@ -677,7 +677,7 @@ void elv_insert(struct request_queue *q, struct request *rq, int where)
        }
 
        if (unplug_it && blk_queue_plugged(q)) {
-               int nrq = q->rq.count[READ] + q->rq.count[WRITE]
+               int nrq = q->rq.count[BLK_RW_SYNC] + q->rq.count[BLK_RW_ASYNC]
                        - q->in_flight;
 
                if (nrq >= q->unplug_thresh)