X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=block%2Felevator.c;h=ca6788a0195ac6d3e117009dcaecb7dd952c593c;hb=44d84afa834b799560d7dbe47250ad7557f5ca2f;hp=98259eda0ef66d4051cc5da958c0191f353b8158;hpb=ec270e59a74eee972006a87c8e12514a20588369;p=pandora-kernel.git diff --git a/block/elevator.c b/block/elevator.c index 98259eda0ef6..ca6788a0195a 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -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)