Commit 0c9f38a1 authored by Manuel Schölling's avatar Manuel Schölling Committed by Greg Kroah-Hartman

staging: lustre: Use time_before()

To be future-proof and for better readability the time comparisons are modified
to use time_before() instead of plain, error-prone math.
Signed-off-by: default avatarManuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fe456ff4
......@@ -80,8 +80,8 @@ static inline void __client_obd_list_lock(client_obd_lock_t *lock,
break;
}
if ((jiffies - cur > 5 * HZ) &&
(jiffies - lock->time > 5 * HZ)) {
if (time_before(cur + 5 * HZ, jiffies) &&
time_before(lock->time + 5 * HZ, jiffies)) {
struct task_struct *task = lock->task;
if (task == NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment