]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - block/deadline-iosched.c
[PATCH] 02/05: update ioscheds to use generic dispatch queue
authorJens Axboe <axboe@suse.de>
Thu, 20 Oct 2005 14:42:29 +0000 (16:42 +0200)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Fri, 28 Oct 2005 06:45:08 +0000 (08:45 +0200)
commitb4878f245ec8e168cdd1f170f823a750b7dd4af5
treede784c2a7e1174e4843807998f0356bf92ee78be
parentd9ebb192aa13a026edc6faff137dcb14f2c91731
[PATCH] 02/05: update ioscheds to use generic dispatch queue

This patch updates all four ioscheds to use generic dispatch
queue.  There's one behavior change in as-iosched.

* In as-iosched, when force dispatching
  (ELEVATOR_INSERT_BACK), batch_data_dir is reset to REQ_SYNC
  and changed_batch and new_batch are cleared to zero.  This
  prevernts AS from doing incorrect update_write_batch after
  the forced dispatched requests are finished.

* In cfq-iosched, cfqd->rq_in_driver currently counts the
  number of activated (removed) requests to determine
  whether queue-kicking is needed and cfq_max_depth has been
  reached.  With generic dispatch queue, I think counting
  the number of dispatched requests would be more appropriate.

* cfq_max_depth can be lowered to 1 again.

Original from Tejun Heo, modified version applied.

Signed-off-by: Jens Axboe <axboe@suse.de>
drivers/block/as-iosched.c
drivers/block/cfq-iosched.c
drivers/block/deadline-iosched.c
drivers/block/noop-iosched.c