From: Justin TerAvest Date: Wed, 23 Mar 2011 07:25:44 +0000 (+0100) Subject: cfq-iosched: Don't clear queue stats when preempt. X-Git-Tag: v2.6.39-rc1~80^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62a37f6badd1ac97ba07d543b5d4be2f9cb17217;p=pandora-kernel.git cfq-iosched: Don't clear queue stats when preempt. For v2, I added back lines to cfq_preempt_queue() that were removed during updates for accounting unaccounted_time. Thanks for pointing out that I'd missed these, Vivek. Previous commit "cfq-iosched: Don't set active queue in preempt" wrongly cleared stats for preempting queues when it shouldn't have, because when we choose a queue to preempt, it still isn't necessarily scheduled next. Thanks to Vivek Goyal for figuring this out and understanding how the preemption code works. Signed-off-by: Justin TerAvest Signed-off-by: Jens Axboe --- Reading git-diff-tree failed