aboutsummaryrefslogtreecommitdiff
path: root/block/blk-map.c
diff options
context:
space:
mode:
authorJustin TerAvest <teravest@google.com>2011-02-09 14:20:03 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 14:47:19 -0800
commite4bbb71290c897c349f9bed3a92907be95e16656 (patch)
tree5eae1a97c47dc6190321b2ca0df16a29e61c02a9 /block/blk-map.c
parent5648b203ebfce5b9b26bc4a95d4072f30d8f8f66 (diff)
cfq-iosched: Don't wait if queue already has requests.
commit 02a8f01b5a9f396d0327977af4c232d0f94c45fd upstream. Commit 7667aa0630407bc07dc38dcc79d29cc0a65553c1 added logic to wait for the last queue of the group to become busy (have at least one request), so that the group does not lose out for not being continuously backlogged. The commit did not check for the condition that the last queue already has some requests. As a result, if the queue already has requests, wait_busy is set. Later on, cfq_select_queue() checks the flag, and decides that since the queue has a request now and wait_busy is set, the queue is expired. This results in early expiration of the queue. This patch fixes the problem by adding a check to see if queue already has requests. If it does, wait_busy is not set. As a result, time slices do not expire early. The queues with more than one request are usually buffered writers. Testing shows improvement in isolation between buffered writers. Signed-off-by: Justin TerAvest <teravest@google.com> Reviewed-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Acked-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'block/blk-map.c')
0 files changed, 0 insertions, 0 deletions