• O
    cfq: fix IOPRIO_CLASS_IDLE delays · b70c864d
    Oleg Nesterov 提交于
    After the fresh boot:
    
    	ionice -c3 -p $$
    	echo cfq >> /sys/block/XXX/queue/scheduler
    	dd if=/dev/XXX of=/dev/null bs=512 count=1
    
    Now dd hangs in D state and the queue is completely stalled for approximately
    INITIAL_JIFFIES + CFQ_IDLE_GRACE jiffies. This is because cfq_init_queue()
    forgets to initialize cfq_data->last_end_request.
    
    (I guess this patch is not complete, overflow is still possible)
    Signed-off-by: NOleg Nesterov <oleg@tv-sign.ru>
    Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
    b70c864d
cfq-iosched.c 54.0 KB