X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=block%2Fblk-throttle.c;h=004be80fd89402efbdc3f4a89a894570b7f27e59;hb=474b9c86b0c65e9ca6a77d8b7bf132c4d5993b9c;hp=56ad4531b41234f87485e4f4bca5ca84d4d10dc1;hpb=45352bbf48e95078b4acd20774f49e72676e1e0f;p=~andy%2Flinux diff --git a/block/blk-throttle.c b/block/blk-throttle.c index 56ad4531b41..004be80fd89 100644 --- a/block/blk-throttle.c +++ b/block/blk-throttle.c @@ -645,7 +645,7 @@ static int throtl_dispatch_tg(struct throtl_data *td, struct throtl_grp *tg, { unsigned int nr_reads = 0, nr_writes = 0; unsigned int max_nr_reads = throtl_grp_quantum*3/4; - unsigned int max_nr_writes = throtl_grp_quantum - nr_reads; + unsigned int max_nr_writes = throtl_grp_quantum - max_nr_reads; struct bio *bio; /* Try to dispatch 75% READS and 25% WRITES */