cfq-iosched: delay async IO dispatch, if sync IO was just done
commit365722bb917b08b7323b5a4a0a3386cc7d00397d
authorVivek Goyal <vgoyal@redhat.com>
Sat, 3 Oct 2009 13:21:27 +0000 (3 15:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 3 Oct 2009 13:21:27 +0000 (3 15:21 +0200)
treee882cb339a7055169596ca4b267087bbf1672709
parent1d2235152dc745c6d94bedb550fea84cffdbf768
cfq-iosched: delay async IO dispatch, if sync IO was just done

o Do not allow more than max_dispatch requests from an async queue, if some
  sync request has finished recently. This is in the hope that sync activity
  is still going on in the system and we might receive a sync request soon.
  Most likely from a sync queue which finished a request and we did not enable
  idling on it.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c