cfq-iosched: preparation to handle multiple service trees
authorCorrado Zoccolo <czoccolo@gmail.com>
Mon, 26 Oct 2009 21:44:33 +0000 (22:44 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 28 Oct 2009 08:23:26 +0000 (09:23 +0100)
commitaa6f6a3de18131348f70951efb2c56d806033e09
tree3565b2f9d2390d4ec054f32658461e781f106997
parent5db5d64277bf390056b1a87d0bb288c8b8553f96
cfq-iosched: preparation to handle multiple service trees

We embed a pointer to the service tree in each queue, to handle multiple
service trees easily.
Service trees are enriched with a counter.
cfq_add_rq_rb is invoked after putting the rq in the fifo, to ensure
that all fields in rq are properly initialized.

Signed-off-by: Corrado Zoccolo <czoccolo@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c