cfq-iosched: Charge at least 1 jiffie instead of 1 ns
authorJan Kara <jack@suse.cz>
Tue, 28 Jun 2016 07:04:02 +0000 (09:04 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 28 Jun 2016 14:21:50 +0000 (08:21 -0600)
commit0b31c10c667b774e6d373c8f1146c93cff21a0cd
treeb0f97fc830aa349da4c46f6874f8a24888b5fa71
parent149321a611d5d41cebcf5f813a3bf45b3afe66ad
cfq-iosched: Charge at least 1 jiffie instead of 1 ns

Commit 9a7f38c42c2b (cfq-iosched: Convert from jiffies to nanoseconds)
could result in charging just 1 ns to a cgroup submitting IO instead of 1
jiffie we always charged before. It is arguable what is the right amount
to change but for now lets retain the old behavior of always charging at
least one jiffie.

Fixes: 9a7f38c42c2b92391d9dabaf9f51df7cfe5608e4
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c