diff options
author | Jens Axboe <axboe@suse.de> | 2005-06-27 08:55:49 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-27 21:33:29 (GMT) |
commit | 3d25f3566bb606720a67caef77b16190df10dd98 (patch) | |
tree | b80225d86859487b6a8eb62126d9de31c7cbf26e /include/asm-ia64 | |
parent | 22e2c507c301c3dbbcf91b4948b88f78842ee6c9 (diff) | |
download | linux-3d25f3566bb606720a67caef77b16190df10dd98.tar.xz |
[PATCH] Fix cfq_find_next_crq()
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: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-ia64')
0 files changed, 0 insertions, 0 deletions