]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf62405eb43ac01db3507d4c6fe1e86f4a457f1a5
treeb0f97fc830aa349da4c46f6874f8a24888b5fa71
parent9c50d72599d87ac877fc09ed434ac66e616cd365
cfq-iosched: Charge at least 1 jiffie instead of 1 ns

Commit bc5240ca5bc1 (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: bc5240ca5bc1c224de225212da9f8378fd604e99
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c