blk-throttle: Fix calculation of max number of WRITES to be dispatched
authorVivek Goyal <vgoyal@redhat.com>
Mon, 15 Nov 2010 18:32:42 +0000 (19:32 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 15 Nov 2010 18:32:42 +0000 (19:32 +0100)
o Currently we try to dispatch more READS and less WRITES (75%, 25%) in one
  dispatch round. ummy pointed out that there is a bug in max_nr_writes
  calculation. This patch fixes it.

Reported-by: ummy y <yummylln@yahoo.com.cn>
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

No differences found