]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cfq_idle_class_timer: add paranoid checks for jiffies overflow
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 7 Nov 2007 12:51:35 +0000 (13:51 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 7 Nov 2007 12:51:35 +0000 (13:51 +0100)
commit0e7be9edb9134f833278c381b6feabb54b875208
treea4eca4110f1b672f78191c8a8f92086b1b6ade7a
parentb70c864d3ce706571d2f3cac1d35d4fba01d6072
cfq_idle_class_timer: add paranoid checks for jiffies overflow

In theory, if the queue was idle long enough, cfq_idle_class_timer may have
a false (and very long) timeout because jiffies can wrap into the past wrt
->last_end_request.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c