• Vivek Goyal's avatar
    cfq-iosched: reset oom_cfqq in cfq_set_request() · 32f2e807
    Vivek Goyal authored
    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: default avatarVivek Goyal <vgoyal@redhat.com>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    32f2e807
cfq-iosched.c 63.9 KB