1. 28 6月, 2005 2 次提交
    • J
      [PATCH] Fix cfq_find_next_crq() · 3d25f356
      Jens Axboe 提交于
      In cfq_find_next_crq(), cfq tries to find the next request by choosing
      one of two requests before and after the current one.  Currently, when
      choosing the next request, if there's no next request, the next
      candidate is NULL, resulting in selection of the previous request.  This
      results in weird scheduling.  Once we reach the end, we always seek
      backward.
      
      The correct behavior is using the first request as the next candidate.
      cfq_choose_req() already has logics for handling wrapped requests.
      Signed-off-by: NTejun Heo <htejun@gmail.com>
      Signed-off-by: NJens Axboe <axboe@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      3d25f356
    • J
      [PATCH] Update cfq io scheduler to time sliced design · 22e2c507
      Jens Axboe 提交于
      This updates the CFQ io scheduler to the new time sliced design (cfq
      v3).  It provides full process fairness, while giving excellent
      aggregate system throughput even for many competing processes.  It
      supports io priorities, either inherited from the cpu nice value or set
      directly with the ioprio_get/set syscalls.  The latter closely mimic
      set/getpriority.
      
      This import is based on my latest from -mm.
      Signed-off-by: NJens Axboe <axboe@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      22e2c507
  2. 27 6月, 2005 38 次提交