From: Vivek Goyal Date: Thu, 9 Jul 2009 20:13:16 +0000 (+0200) Subject: cfq-iosched: reset oom_cfqq in cfq_set_request() X-Git-Tag: v2.6.31-rc3~29^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f2e807a3938b24d0831211e6094f9e44b2fc83;p=pandora-kernel.git cfq-iosched: reset oom_cfqq in cfq_set_request() In case memory is scarce, we now default to oom_cfqq. Once memory is available again, we should allocate a new cfqq and stop using oom_cfqq for a particular io context. Once a new request comes in, check if we are using oom_cfqq, and if yes, try to allocate a new cfqq. Tested the patch by forcing the use of oom_cfqq and upon next request thread realized that it was using oom_cfqq and it allocated a new cfqq. Signed-off-by: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed