|
@@ -80,8 +80,8 @@ static inline void __client_obd_list_lock(client_obd_lock_t *lock,
|
|
break;
|
|
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;
|
|
struct task_struct *task = lock->task;
|
|
|
|
|
|
if (task == NULL)
|
|
if (task == NULL)
|