]> git.baikalelectronics.ru Git - kernel.git/commit
blkio: Determine async workload length based on total number of queues
authorVivek Goyal <vgoyal@redhat.com>
Thu, 3 Dec 2009 17:59:54 +0000 (12:59 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Dec 2009 18:28:53 +0000 (19:28 +0100)
commitbe4e64803fa332c68c66ee4256f57c809da53907
tree8e49302c146eacdd1cfbe78a6bd3aad2b81c3050
parentde9ad66f6de0e348d82395d85c3bcff9da9017c6
blkio: Determine async workload length based on total number of queues

o Async queues are not per group. Instead these are system wide and maintained
  in root group. Hence their workload slice length should be calculated
  based on total number of queues in the system and not just queues in the
  root group.

o As root group's default weight is 1000, make sure to charge async queue
  more in terms of vtime so that it does not get more time on disk because
  root group has higher weight.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c