blkio: Implement dynamic io controlling policy registration
commit3e2520668970aab5a764044a298e987aafc1f63d
authorVivek Goyal <vgoyal@redhat.com>
Fri, 4 Dec 2009 15:36:42 +0000 (4 10:36 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 4 Dec 2009 15:38:14 +0000 (4 16:38 +0100)
tree088ebf7c4576d597774c8c332bab590dc3a472d6
parent9d6a986c0b276085f7944cd8ad65f4f82aff7536
blkio: Implement dynamic io controlling policy registration

o One of the goals of block IO controller is that it should be able to
  support mulitple io control policies, some of which be operational at
  higher level in storage hierarchy.

o To begin with, we had one io controlling policy implemented by CFQ, and
  I hard coded the CFQ functions called by blkio. This created issues when
  CFQ is compiled as module.

o This patch implements a basic dynamic io controlling policy registration
  functionality in blkio. This is similar to elevator functionality where
  ioschedulers register the functions dynamically.

o Now in future, when more IO controlling policies are implemented, these
  can dynakically register with block IO controller.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-cgroup.c
block/blk-cgroup.h
block/cfq-iosched.c
block/cfq-iosched.h [deleted file]