blkio: Implement macro to traverse each service tree in group
authorVivek Goyal <vgoyal@redhat.com>
Thu, 3 Dec 2009 17:59:39 +0000 (12:59 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Dec 2009 18:28:51 +0000 (19:28 +0100)
commit615f0259e6940293359a189f4881bb28c2fea40b
tree36ae080bc809a8d998801c0bcfc0d63b7b892745
parentcdb16e8f739985b8a5c9f4569b026583bbcd01a5
blkio: Implement macro to traverse each service tree in group

o Implement a macro to traverse each service tree in the group. This avoids
  usage of double for loop and special condition for idle tree 4 times.

o Macro is little twisted because of special handling of idle class service
  tree.

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