Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50331247 authored by Omar Sandoval's avatar Omar Sandoval Committed by Pranav Vashi
Browse files

BACKPORT: block: use ktime_get_ns() instead of sched_clock() for cfq



cfq has some internal fields that use sched_clock() which can
trivially use ktime_get_ns() instead. Their timestamp fields in struct
request can also use ktime_get_ns(), which resolves the 8 year old
comment added by commit 28f4197e ("block: disable preemption before
using sched_clock()").

Signed-off-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
[yaro]: resolved conflicts.
Signed-off-by: default avatarYaroslav Furman <yaro330@gmail.com>
Signed-off-by: default avatarDanny Lin <danny@kdrag0n.dev>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
parent 0f273e90
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment