Skip to content
Commit ce40426f authored by Khazhismel Kumykov's avatar Khazhismel Kumykov Committed by Mike Snitzer
Browse files

dm mpath: only use ktime_get_ns() in historical selector



Mixing sched_clock() and ktime_get_ns() usage will give bad results.

Switch hst_select_path() from using sched_clock() to ktime_get_ns().
Also rename path_service_time()'s 'sched_now' variable to 'now'.

Fixes: 2613eab1 ("dm mpath: add Historical Service Time Path Selector")
Signed-off-by: default avatarKhazhismel Kumykov <khazhy@google.com>
Signed-off-by: default avatarMike Snitzer <snitzer@kernel.org>
parent 08c1af8f
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