Skip to content
  • Aaron Carroll's avatar
    cfq-iosched: fix queue depth detection · 45333d5a
    Aaron Carroll authored
    
    
    CFQ's detection of queueing devices assumes a non-queuing device and detects
    if the queue depth reaches a certain threshold.  Under some workloads (e.g.
    synchronous reads), CFQ effectively forces a unit queue depth, thus defeating
    the detection logic.  This leads to poor performance on queuing hardware,
    since the idle window remains enabled.
    
    This patch inverts the sense of the logic: assume a queuing-capable device,
    and detect if the depth does not exceed the threshold.
    
    Signed-off-by: default avatarAaron Carroll <aaronc@gelato.unsw.edu.au>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    45333d5a