OSDN Git Service

cfq-iosched: Convert from jiffies to nanoseconds
authorJeff Moyer <jmoyer@redhat.com>
Wed, 8 Jun 2016 14:55:34 +0000 (08:55 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 8 Jun 2016 14:55:34 +0000 (08:55 -0600)
commit9a7f38c42c2b92391d9dabaf9f51df7cfe5608e4
treebe1306256203e951448399175af96a53175cef9a
parent28a8f0d317bf225ff15008f5dd66ae16242dd843
cfq-iosched: Convert from jiffies to nanoseconds

Convert all time-keeping in CFQ IO scheduler from jiffies to nanoseconds
so that we can later make the intervals more fine-grained than jiffies.
One jiffie is several miliseconds and even for today's rotating disks
that is a noticeable amount of time and thus we leave disk unnecessarily
idle.

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c